forked from evolix/ansible-roles
evoadmin-web: clarify ansible code
This commit is contained in:
parent
2480088f8b
commit
2a8e571f04
|
@ -24,7 +24,7 @@
|
||||||
name: www-evoadmin
|
name: www-evoadmin
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
- name: Install Git
|
- name: Git is needed to clone the evoadmin repository
|
||||||
apt:
|
apt:
|
||||||
name: git
|
name: git
|
||||||
state: present
|
state: present
|
||||||
|
@ -68,12 +68,12 @@
|
||||||
|
|
||||||
# we use a shell command to have a "changed" thet really reflects the result.
|
# we use a shell command to have a "changed" thet really reflects the result.
|
||||||
- name: Fix permissions
|
- name: Fix permissions
|
||||||
shell: "chmod -R --verbose u=rwX,g=rX,o= {{ item }}"
|
command: "chmod -R --verbose u=rwX,g=rX,o= {{ evoadmin_document_root }}"
|
||||||
register: command_result
|
register: command_result
|
||||||
changed_when: "'changed' in command_result.stdout"
|
changed_when: "'changed' in command_result.stdout"
|
||||||
# failed_when: False
|
# failed_when: False
|
||||||
with_items:
|
args:
|
||||||
- "{{ evoadmin_home_dir}}/www"
|
warn: no
|
||||||
|
|
||||||
- name: Add evoadmin sudoers file
|
- name: Add evoadmin sudoers file
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue