✨: move phpbb to app dir
This commit is contained in:
29
roles/phpbb/tasks/phpbb_exts.yml
Normal file
29
roles/phpbb/tasks/phpbb_exts.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
|
||||
- name: Create phpbb ext path
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
dest: "{{ phpbb_app_home }}/ext/{{ ext.path }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "0o750"
|
||||
|
||||
- name: Extract phpbb ext
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: true
|
||||
src: "{{ ext.url | replace('%VERSION%', ext.version) }}"
|
||||
dest: "{{ phpbb_app_home }}/ext/{{ ext.path }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "a-rwx,u+rwX,g+rX"
|
||||
extra_opts: ['--strip-components=1']
|
||||
|
||||
- name: Put extra files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ phpbb_app_home }}/ext/{{ ext.path }}/{{ item.dest }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "0o640"
|
||||
loop: "{{ ext.extra_files }}"
|
||||
when: ext.extra_files is defined
|
Reference in New Issue
Block a user