Browse Source

+ change ownerships to var www dir after apache or nginx role processed

#861m7vaer Шаблон операционной системы на Debian 10
master
dimti 2 years ago
parent
commit
796f8a31a7
  1. 9
      apache-site.yml
  2. 2
      debops/mariadb-custom-db.yml
  3. 1
      nginx-site.yml
  4. 7
      playbooks/own/var-www-set-ownerships.yml

9
apache-site.yml

@ -1,12 +1,17 @@
---
- import_playbook: playbooks/own/allow-releaseinfo-change.yml
- import_playbook: playbooks/own/locales.yml
- import_playbook: debops/tzdata.yml
- import_playbook: debops/pki.yml
- import_playbook: debops/yadm.yml
- import_playbook: debops/root_account.yml
- import_playbook: debops/sudo.yml
- import_playbook: debops/system_users.yml
- import_playbook: debops/mariadb_server.yml
- import_playbook: debops/mariadb-custom-db.yml
- import_playbook: debops/php-wp.yml
- import_playbook: debops/apache.yml
- import_playbook: debops/users.yml
- import_playbook: debops/sudo.yml
- import_playbook: playbooks/own/var-www-set-ownerships.yml
# Import all other group playbooks in this file...

2
debops/mariadb-custom-db.yml

@ -17,7 +17,7 @@
vars_files:
- ./../vars/databases.yml
-
roles:
- role: secret

1
nginx-site.yml

@ -8,6 +8,7 @@
- import_playbook: debops/redis.yml
- import_playbook: debops/users.yml
- import_playbook: debops/sudo.yml
- import_playbook: playbooks/own/var-www-set-ownerships.yml
# Import all other group playbooks in this file...

7
playbooks/own/var-www-set-ownerships.yml

@ -0,0 +1,7 @@
---
- name: Configure Locales
hosts: [ 'debian10' ]
tasks:
- name: Set ownerships to /var/www dir
shell: 'chown -R {{ lxc_host }}:{{ lxc_host }} /var/www'
Loading…
Cancel
Save