summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks/main.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2016-12-14 13:30:34 -0500
committerRussell Teague <rteague@redhat.com>2017-01-24 10:43:17 -0500
commit4397b6e3dbfbc6bed8f7b653ba1b6093dbe51f5c (patch)
tree8b3f5c3ae93deb195412aa2ea50124947e464328 /roles/docker/tasks/main.yml
parent77656036572baa6abfefd7d467f25033d1fb81b0 (diff)
downloadopenshift-4397b6e3dbfbc6bed8f7b653ba1b6093dbe51f5c.tar.gz
openshift-4397b6e3dbfbc6bed8f7b653ba1b6093dbe51f5c.tar.bz2
openshift-4397b6e3dbfbc6bed8f7b653ba1b6093dbe51f5c.tar.xz
openshift-4397b6e3dbfbc6bed8f7b653ba1b6093dbe51f5c.zip
Add new option 'openshift_docker_selinux_enabled'
Allows controlling 'selinux-enabled' docker options Can be set to true or false
Diffstat (limited to 'roles/docker/tasks/main.yml')
-rw-r--r--roles/docker/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index a8935370a..66c9cfa0f 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -96,7 +96,7 @@
dest: /etc/sysconfig/docker
regexp: '^OPTIONS=.*$'
line: "OPTIONS='\
- {% if ansible_selinux and ansible_selinux.status == '''enabled''' %} --selinux-enabled{% endif %}\
+ {% if ansible_selinux.status | default(None) == '''enabled''' and docker_selinux_enabled | default(true) %} --selinux-enabled {% endif %}\
{% if docker_log_driver is defined %} --log-driver {{ docker_log_driver }}{% endif %}\
{% if docker_log_options is defined %} {{ docker_log_options | oo_split() | oo_prepend_strings_in_list('--log-opt ') | join(' ')}}{% endif %}\
{% if docker_options is defined %} {{ docker_options }}{% endif %}\