Update docker task
This commit is contained in:
parent
1d5c60b126
commit
802fb5fa72
@ -35,3 +35,15 @@
|
||||
name: "{{ansible_user_id}}"
|
||||
groups: docker
|
||||
append: yes
|
||||
|
||||
- name: start and enable docker
|
||||
systemd:
|
||||
name: docker
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: add current user to docker group
|
||||
user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
append: yes
|
||||
groups: docker
|
||||
|
@ -1,7 +1,20 @@
|
||||
---
|
||||
- name: install needed packages
|
||||
become: yes
|
||||
- become: yes
|
||||
block:
|
||||
- name: install needed packages
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- docker.io
|
||||
|
||||
- name: start and enable docker
|
||||
systemd:
|
||||
name: docker
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: add current user to docker group
|
||||
user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
append: yes
|
||||
groups: docker
|
||||
|
Loading…
Reference in New Issue
Block a user