infra/roles/drone/tasks/main.yml

23 lines
512 B
YAML
Raw Normal View History

2024-03-09 03:19:05 -05:00
---
- name: ensure drone docker/compose exist
file:
path: /etc/docker/compose/drone
state: directory
owner: root
group: root
mode: 0700
- name: build drone docker-compose.yml.j2
template:
src: ../templates/docker-compose.yml.j2
dest: /etc/docker/compose/drone/docker-compose.yml
owner: root
group: root
mode: u=rw,g=r,o=r
- name: daemon-reload and enable drone
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@drone