mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-07 15:05:01 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
18
roles/includes/webapps_post.yml
Normal file
18
roles/includes/webapps_post.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
|
||||
- name: Deploy permission script
|
||||
template: src=perms.sh.j2 dest={{ root_dir }}/perms.sh mode=755
|
||||
|
||||
- name: Set correct SELinux context
|
||||
sefcontext:
|
||||
target: "{{ root_dir }}(/.*)?"
|
||||
setype: httpd_sys_content_t
|
||||
state: present
|
||||
when: ansible_selinux.status == 'enabled'
|
||||
|
||||
- name: Set optimal permissions
|
||||
command: "{{ root_dir }}/perms.sh"
|
||||
changed_when: False
|
||||
|
||||
- name: Write version
|
||||
copy: content={{ version }} dest={{ root_dir }}/meta/ansible_version
|
Reference in New Issue
Block a user