1
0
Fork 0
myserver-configuration/roles/whoami/tasks/base.yml

21 lines
450 B
YAML
Raw Normal View History

2023-05-20 16:06:45 +02:00
---
- 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:
2024-07-14 22:16:35 +02:00
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
2023-05-20 16:06:45 +02:00
- name: Force update and restart container
2024-07-14 21:39:23 +02:00
community.docker.docker_compose_v2:
2023-05-20 16:06:45 +02:00
project_src: whoami
state: present
2024-07-14 21:39:23 +02:00
pull: always
2023-05-20 16:06:45 +02:00
become: true