You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
- name: Ensure Volumes & Files directories exists
|
|
|
|
file:
|
|
|
|
dest: "{{item}}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- /compose
|
|
|
|
- /compose/nginx
|
|
|
|
- /compose/volumes
|
|
|
|
- /compose/volumes/nginx
|
|
|
|
|
|
|
|
- name: Ensure docker-compose file has been updated
|
|
|
|
template:
|
|
|
|
src: "{{item}}"
|
|
|
|
dest: /compose/nginx/
|
|
|
|
loop:
|
|
|
|
- docker-compose.yml
|
|
|
|
|
|
|
|
- name: Ensure nginx config directory exist
|
|
|
|
copy:
|
|
|
|
src: nginx
|
|
|
|
dest: /compose/volumes/nginx/
|
|
|
|
mode: 'preserve'
|
|
|
|
group: root
|
|
|
|
owner: root
|
|
|
|
|
|
|
|
- name: Ensure config files are updated
|
|
|
|
template:
|
|
|
|
src: "nginx.conf"
|
|
|
|
dest: /compose/volumes/nginx/nginx.conf
|
|
|
|
|
|
|
|
- name: Ensure nginx is up
|
|
|
|
community.docker.docker_compose:
|
|
|
|
state: present
|
|
|
|
project_src: /compose/nginx
|
|
|
|
pull: no
|