summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2016-11-11 10:41:12 -0500
committerGitHub <noreply@github.com>2016-11-11 10:41:12 -0500
commitb29e9340544cbfb127e0a7f6be88f8b4f2818b4d (patch)
tree46a8a8764417dbd5992476104e8ccf23ab1f7b7f /roles/docker/tasks
parent9bf23fd0aafdfb13f4a444e2c1437d407421f50c (diff)
parentb300b2e3563f406058b6c29d61a9ec7fb6969cab (diff)
downloadopenshift-b29e9340544cbfb127e0a7f6be88f8b4f2818b4d.tar.gz
openshift-b29e9340544cbfb127e0a7f6be88f8b4f2818b4d.tar.bz2
openshift-b29e9340544cbfb127e0a7f6be88f8b4f2818b4d.tar.xz
openshift-b29e9340544cbfb127e0a7f6be88f8b4f2818b4d.zip
Merge pull request #2770 from mtnbikenc/docker-fix
Resolve docker and iptables service dependencies
Diffstat (limited to 'roles/docker/tasks')
-rw-r--r--roles/docker/tasks/main.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index 7147aa2d4..240673b22 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -46,11 +46,23 @@
action: "{{ ansible_pkg_mgr }} name=docker{{ '-' + docker_version if docker_version is defined else '' }} state=present"
when: not openshift.common.is_atomic | bool
+- name: Ensure docker.service.d directory exists
+ file:
+ path: "{{ docker_systemd_dir }}"
+ state: directory
+
+# Extend the default Docker service unit file
+- name: Configure Docker service unit file
+ template:
+ dest: "{{ docker_systemd_dir }}/custom.conf"
+ src: custom.conf.j2
+
- name: Start the Docker service
- service:
+ systemd:
name: docker
enabled: yes
state: started
+ daemon_reload: yes
register: start_result
- set_fact: