24 lines
524 B
YAML
24 lines
524 B
YAML
|
---
|
||
|
|
||
|
- 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
|