mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 05:31:04 +01:00
36 lines
822 B
YAML
36 lines
822 B
YAML
---
|
|
|
|
- name: docker & docker compose install
|
|
pacman:
|
|
name: ['docker','docker-compose']
|
|
state: present
|
|
notify: docker restart
|
|
when: run_once_docker is not defined
|
|
|
|
- name: "create {{path_docker_compose_instances}}"
|
|
file:
|
|
path: "{{path_docker_compose_instances}}"
|
|
state: directory
|
|
mode: 0700
|
|
owner: administrator
|
|
group: administrator
|
|
when: run_once_docker is not defined
|
|
|
|
- name: "create {{path_docker_volumes}}"
|
|
file:
|
|
path: "{{path_docker_volumes}}"
|
|
state: directory
|
|
mode: 0700
|
|
owner: administrator
|
|
group: administrator
|
|
when: run_once_docker is not defined
|
|
|
|
- name: flush docker service
|
|
meta: flush_handlers
|
|
when: run_once_docker is not defined
|
|
|
|
- name: run the docker tasks once
|
|
set_fact:
|
|
run_once_docker: true
|
|
when: run_once_docker is not defined
|