From ac0964a612e2fee701a98ba44f9aece30c11ca56 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Sat, 14 Apr 2018 11:52:14 -0700 Subject: [PATCH] Create config files if they don't exist --- tasks/docker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/docker.yml b/tasks/docker.yml index 2a39aa7..160915b 100644 --- a/tasks/docker.yml +++ b/tasks/docker.yml @@ -28,6 +28,7 @@ [Service] MountFlags= notify: restart docker service + create: yes - name: configure OPTIONS in /etc/sysconfig/docker lineinfile: @@ -35,6 +36,7 @@ regexp: '^OPTIONS=' line: "OPTIONS='--iptables={{ selinux_enabled|bool }} {{ docker_options }}'" notify: restart docker service + create: yes - name: configure INSECURE_REGISTRY in /etc/sysconfig/docker lineinfile: @@ -58,6 +60,7 @@ line: "DOCKER_STORAGE_OPTIONS=' {{ storage_options }}'" when: storage_options != "" notify: restart docker service + create: yes - name: configure DOCKER_NETWORK_OPTIONS in /etc/sysconfig/docker-network lineinfile: @@ -66,6 +69,7 @@ line: "DOCKER_NETWORK_OPTIONS=' {{ network_options }}'" when: storage_options != "" notify: restart docker service + create: yes - name: add deployment user to docker group user: