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

21 lines
479 B
YAML
Raw Normal View History

---
- name: Check git directory exist
ansible.builtin.file:
path: git
state: directory
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "git/{{ item.dest }}"
loop:
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
2023-11-21 23:00:10 +01:00
- { src: 'config.yml', dest: 'config.yml' }
- name: Update and restart container
2024-07-14 21:39:23 +02:00
community.docker.docker_compose_v2:
project_src: git
state: present
2024-07-14 21:39:23 +02:00
pull: always
become: true