Skip to content

Commit

Permalink
Ensure correct directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
neidiom committed Apr 15, 2023
1 parent 87763fc commit 677068c
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Ensure mandatory variables are defined
assert:
that:
- roundcube_mysql_password is defined
- roundcube_des_key is defined

- name: Ensure crontab is installed
apt:
Expand Down Expand Up @@ -61,21 +66,10 @@
src: "{{ roundcube_user_home }}/roundcubemail-{{ roundcube_version }}/"
dest: "{{ roundcube_path }}"
state: link
mode: 0750
mode: 0755
register: link
notify: Restart apache

- name: Ensure correct directory permissions
file:
path: "{{ item }}"
owner: "{{ roundcube_user }}"
group: "{{ roundcube_user }}"
mode: 0755
with_items:
- "{{ roundcube_user_home }}"
- "{{ roundcube_user_home }}/roundcubemail-{{ roundcube_version }}"
- "{{ roundcube_user_home }}/roundcubemail-{{ roundcube_version }}/public_html"

- name: Ensure roundcube and plugin configs are latest
template:
src: "{{ item }}.j2"
Expand Down

0 comments on commit 677068c

Please sign in to comment.