feat(ansible): Crée répertoire media avec variables.
This commit is contained in:
@@ -192,24 +192,24 @@
|
||||
group: www-data
|
||||
mode: 0777
|
||||
state: directory
|
||||
- name: Change ownership of /var/www/mainframe/app/public/media
|
||||
.builtin.file:
|
||||
path: /var/www/mainframe/app/public/media
|
||||
owner: bot
|
||||
group: www-data
|
||||
recurse: yes
|
||||
state: directory
|
||||
- name: Creates directory media
|
||||
ansible.builtin.file:
|
||||
path: "{{path}}/public/media"
|
||||
owner: bot
|
||||
group: www-data
|
||||
mode: 0777
|
||||
state: directory
|
||||
- name: Exécuter liip:imagine:cache:remove dans le répertoire de l application
|
||||
ansible.builtin.command: php bin/console liip:imagine:cache:remove
|
||||
become: false
|
||||
args:
|
||||
chdir: "{{ path }}"
|
||||
- name: Change ownership of /var/www/mainframe/app/public/media
|
||||
.builtin.file:
|
||||
path: /var/www/mainframe/app/public/media
|
||||
- name: Creates directory media
|
||||
ansible.builtin.file:
|
||||
path: "{{path}}/public/media"
|
||||
owner: www-data
|
||||
group: www-data
|
||||
recurse: yes
|
||||
mode: 0777
|
||||
state: directory
|
||||
when: ansible_os_family == "Debian"
|
||||
- name: Creates directory
|
||||
|
||||
Reference in New Issue
Block a user