♻: move roundcube app dir
All checks were successful
ansible-lint / lint-everything (push) Successful in 3s
All checks were successful
ansible-lint / lint-everything (push) Successful in 3s
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
---
|
||||
## Remove previous app & install new version
|
||||
- name: Remove roundcube previous version
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
dest: "{{ roundcube_app_home }}"
|
||||
|
||||
- name: Create application directory
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
dest: "{{ roundcube_home }}"
|
||||
dest: "{{ roundcube_app_home }}"
|
||||
owner: "root"
|
||||
group: "www-data"
|
||||
mode: "0o750"
|
||||
@@ -12,13 +17,11 @@
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: true
|
||||
src: "{{ roundcube_url }}"
|
||||
dest: "{{ roundcube_home }}"
|
||||
dest: "{{ roundcube_app_home }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "a-rwx,u+rwX,g+rX"
|
||||
extra_opts: ['--strip-components=1']
|
||||
exclude:
|
||||
- "{{ roundcube_config_path }}"
|
||||
|
||||
- name: Put roundcube configuration
|
||||
ansible.builtin.template:
|
||||
@@ -32,10 +35,8 @@
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
recurse: true
|
||||
dest: "{{ roundcube_home }}/{{ item }}"
|
||||
dest: "{{ roundcube_app_home }}/{{ item }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "g+w"
|
||||
loop:
|
||||
- "logs"
|
||||
- "temp"
|
||||
loop: "{{ roundcube_writable_app_dirs }}"
|
||||
|
@@ -1,10 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Remove carddav plugin
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
dest: "{{ roundcube_app_home }}/plugins/carddav"
|
||||
|
||||
- name: Unzip carddav plugin
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: true
|
||||
src: "{{ roundcube_carddav_url }}"
|
||||
dest: "{{ roundcube_home }}/plugins"
|
||||
dest: "{{ roundcube_app_home }}/plugins"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "a-rwx,u+rwX,g+rX"
|
||||
@@ -12,7 +17,7 @@
|
||||
- name: Put carddav config file
|
||||
ansible.builtin.template:
|
||||
src: "carddav.config.inc.php.j2"
|
||||
dest: "{{ roundcube_home }}/plugins/carddav/config.inc.php"
|
||||
dest: "{{ roundcube_app_home }}/plugins/carddav/config.inc.php"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "0o640"
|
||||
|
Reference in New Issue
Block a user