20 lines
450 B
YAML
20 lines
450 B
YAML
---
|
|
|
|
- name: Check whoami directory exist
|
|
ansible.builtin.file:
|
|
path: whoami
|
|
state: directory
|
|
|
|
- name: Copy template conf
|
|
ansible.builtin.template:
|
|
src: "{{ item.src }}"
|
|
dest: "whoami/{{ item.dest }}"
|
|
loop:
|
|
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
|
|
|
|
- name: Force update and restart container
|
|
community.docker.docker_compose_v2:
|
|
project_src: whoami
|
|
state: present
|
|
pull: always
|
|
become: true
|