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

20 lines
No EOL
455 B
YAML

---
- name: Check portfolio directory exist
ansible.builtin.file:
path: portfolio
state: directory
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "portfolio/{{ item.dest }}"
loop:
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
- name: Update and restart container
community.docker.docker_compose_v2:
project_src: portfolio
state: present
pull: always
become: true