infra/playbooks/roles/drone/tasks/main.yml

24 lines
524 B
YAML
Raw Permalink Normal View History

2024-03-25 01:19:53 -04:00
---
- name: Ensure drone docker/compose exist
ansible.builtin.file:
path: /etc/docker/compose/drone
state: directory
owner: root
group: root
mode: 0700
- name: Build drone docker-compose.yml.j2
ansible.builtin.template:
src: docker-compose.yml.j2
dest: /etc/docker/compose/drone/docker-compose.yml
owner: root
group: root
mode: 0700
- name: Daemon-reload and enable drone
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@drone