k-space-infra-automation/ansible/kanban/base_setup.yml
2019-11-08 00:46:58 +02:00

28 lines
580 B
YAML

---
- hosts: kanban
become: yes
become_user: root
become_method: sudo
tasks:
- name: install docker-compose
package:
name: docker-compose
state: present
- name: create systemd group file
template:
dest: /etc/systemd/system/docker-compose@.service
src: templates/systemd_docker-compose_service.j2
register: service_config
- name: reload daemon
shell: systemctl daemon-reload
when: service_config.changed
- name: enable and start docker service
service:
name: docker
enabled: true
state: started