- name: Etckeeper commit if necessary
- ansible.builtin.command: etckeeper commit "commit by ansible because installing {{ DOMAIN }}/{{ SITE }}"
+ ansible.builtin.command: etckeeper commit "commit by ansible because installing {{ DOMAIN }}/{{ config_ss_domain }}"
- name: Install required packages
ansible.builtin.apt:
- name: Copie la source paheko vers le home du site
become: true
-# become_user: "php_{{ SIGLE }}_{{ SITE }}"
+# become_user: "php_{{ SIGLE }}_{{ config_ss_domain }}"
ansible.builtin.copy:
src: "/home/sites/data/paheko/{{ paheko_version }}/"
- dest: "/home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}"
+ dest: "/home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ config_ss_domain }}"
remote_src: true # because the config file is already in the nextcloud_tmp_path
mode: '2750'
- name: Modification du propriétaire group et droits du dossier
ansible.builtin.file:
- path: "/home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/"
+ path: "/home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ config_ss_domain }}/"
state: directory
- owner: "php_{{ SIGLE }}_{{ SITE }}"
- group: "site_{{ SIGLE }}_{{ SITE }}"
+ owner: "php_{{ SIGLE }}_{{ config_ss_domain }}"
+ group: "site_{{ SIGLE }}_{{ config_ss_domain }}"
mode: '2750'
recurse: true