Skip to content

Commit

Permalink
add fix to ensure /etc/docker is present
Browse files Browse the repository at this point in the history
  • Loading branch information
apetrenko-TA authored and angstwad committed Feb 27, 2018
1 parent 6951c85 commit c844324
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@
- Restart docker
when: daemon_json is not none and is_systemd

- name: Ensure /etc/docker is present
file:
path: /etc/docker
state: directory
owner: root
group: root
mode: 0755

- name: Set /etc/docker/daemon.json
copy:
content: "{{ daemon_json | to_nice_json }}"
Expand Down

0 comments on commit c844324

Please sign in to comment.