23 lines
512 B
YAML
23 lines
512 B
YAML
---
|
|
- 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
|