Add more modules to phpvms
This commit is contained in:
parent
0e47afdf5e
commit
82f65d396f
4 changed files with 80 additions and 18 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue