Added docker
This commit is contained in:
parent
e04b2b37be
commit
2990cb7bf8
20
roles/docker/tasks/main.yaml
Normal file
20
roles/docker/tasks/main.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: install packages
|
||||
package:
|
||||
name:
|
||||
- docker
|
||||
- docker-compose
|
||||
state: latest
|
||||
|
||||
- name: activate daemon
|
||||
systemd:
|
||||
name: docker
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: add user to docker group
|
||||
user:
|
||||
name: "{{ account.name }}"
|
||||
groups: docker
|
||||
append: yes
|
||||
|
Reference in New Issue
Block a user