Add more modules to phpvms

This commit is contained in:
Tobias Reisinger 2026-03-02 00:57:24 +01:00
parent 0e47afdf5e
commit 82f65d396f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 80 additions and 18 deletions

View file

@ -24,16 +24,14 @@
group: "{{ phpvms_gid }}"
become: true
# You must provide this file yourself.
- name: Load VMSArcas module
ansible.builtin.unarchive:
src: vmsacars.tar.gz
dest: "{{ (service_path, 'modules') | path_join }}"
- name: Create resources_in directory
ansible.builtin.file:
path: "{{ (service_path, 'resources') | path_join }}"
state: directory
mode: "0755"
owner: "{{ phpvms_uid }}"
group: "{{ phpvms_gid }}"
become: true
notify: Restart service {{ service_name }}
when: service_name == role_name # Only use on "main" instance
- name: Template Caddyfile
ansible.builtin.template:
@ -44,3 +42,61 @@
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml
# You must provide this file yourself.
- name: Load VMSArcas module
ansible.builtin.unarchive:
src: vmsacars.tar.gz
dest: "{{ (service_path, 'modules') | path_join }}"
owner: "{{ phpvms_uid }}"
group: "{{ phpvms_gid }}"
become: true
notify: Restart service {{ service_name }}
when: service_name == role_name # Only use on the "main" instance
- name: Load DisposableBasic
ansible.builtin.unarchive:
src: https://github.com/FatihKoz/DisposableBasic/releases/download/v3.7.4/DisposableBasic.zip
remote_src: true
dest: "{{ (service_path, 'modules') | path_join }}"
owner: "{{ phpvms_uid }}"
group: "{{ phpvms_gid }}"
become: true
notify: Restart service {{ service_name }}
- name: Load DisposableSpecial
ansible.builtin.unarchive:
src: https://github.com/FatihKoz/DisposableSpecial/releases/download/v3.7.8/DisposableSpecial.zip
remote_src: true
dest: "{{ (service_path, 'modules') | path_join }}"
owner: "{{ phpvms_uid }}"
group: "{{ phpvms_gid }}"
become: true
notify: Restart service {{ service_name }}
# You must provide this file yourself.
- name: Load SPTheme
ansible.builtin.unarchive:
src: phpvms7_SPTheme.tar.gz
dest: "{{ service_path }}"
include:
- modules
- public
- resources
owner: "{{ phpvms_uid }}"
group: "{{ phpvms_gid }}"
become: true
notify: Restart service {{ service_name }}
# You must provide this file yourself.
- name: Load SPTheme DSPack
ansible.builtin.unarchive:
src: phpvms7_SPTheme_DSPack.tar.gz
dest: "{{ service_path }}"
include:
- public
- resources
owner: "{{ phpvms_uid }}"
group: "{{ phpvms_gid }}"
become: true
notify: Restart service {{ service_name }}