fix some bugs

This commit is contained in:
rick 2022-06-26 13:26:59 +02:00
parent 09f7e02520
commit b2495b3175
Signed by: Rick
GPG key ID: 4A6223D66294EB20
2 changed files with 11 additions and 4 deletions

View file

@ -31,10 +31,17 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
owner: "{{ user_default }}"
group: "{{ user_default }}"
with_items: with_items:
- "{{ public }}" - "{{ public }}"
- "{{ private }}" - "{{ private }}"
- name: création du dossier du site
ansible.builtin.file:
path: "{{ path_site }}"
state: directory
- name: lien symbolique pour le dossier publique - name: lien symbolique pour le dossier publique
ansible.builtin.file: ansible.builtin.file:
src: "{{ public }}" src: "{{ public }}"

View file

@ -1,7 +1,7 @@
--- ---
private_name: "" private_name: ""
path: "{{ home_user_default }}/bubger" path: "{{ home_user_default }}/bubger"
path_site: "/var/www/mailings_list" path_site: "/var/www/mailing_list"
path_site_public: "{{ path_site }}/archives" path_site_public: "{{ path_site }}/archives"
path_site_private: "{{ path_site }}/{{ private_name }}" path_site_private: "{{ path_site }}/{{ private_name }}"
public: "{{ path }}/archives" public: "{{ path }}/archives"