Create a common Docker task.
This commit is contained in:
parent
62715e101a
commit
8b0bd363a8
22
.ansible/roles/common_server/tasks/docker.yaml
Normal file
22
.ansible/roles/common_server/tasks/docker.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
- name: "Docker"
|
||||
tags:
|
||||
- docker
|
||||
block:
|
||||
- name: "Docker: packages"
|
||||
tags:
|
||||
- install
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: latest
|
||||
loop:
|
||||
- "docker.io"
|
||||
- "docker-compose"
|
||||
become: yes
|
||||
|
||||
- name: "Docker: directory"
|
||||
tags:
|
||||
- install
|
||||
file:
|
||||
state: directory
|
||||
path: "/srv/app/docker"
|
||||
become: yes
|
Loading…
Reference in a new issue