Initial commit
This commit is contained in:
20
tasks/config.yml
Normal file
20
tasks/config.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: create directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
with_items:
|
||||
- /etc/systemd/system/docker.service.d
|
||||
- /etc/docker
|
||||
|
||||
- name: create daemon.json
|
||||
template:
|
||||
src: daemon-json.j2
|
||||
dest: /etc/docker/daemon.json
|
||||
mode: 0640
|
||||
register: docker_daemon_json
|
||||
notify:
|
||||
- restart docker service
|
||||
|
||||
- meta: flush_handlers
|
||||
Reference in New Issue
Block a user