: move phpbb to app dir
Some checks failed
ansible-lint / lint-everything (push) Failing after 1m35s

This commit is contained in:
VC
2025-04-04 20:38:30 +02:00
parent 1dafa87b40
commit 4e5afb182a
13 changed files with 272 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
---
- 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
loop: "{{ ext.extra_files }}"
when: ext.extra_files is defined