summaryrefslogtreecommitdiffstats
path: root/roles/docker
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2017-01-24 12:38:41 -0500
committerGitHub <noreply@github.com>2017-01-24 12:38:41 -0500
commit89b4e7070dc57aea6c2e1dc038348142ed4c747a (patch)
tree52b08cd2d660d351169c84b9e6ae7c360bf290f1 /roles/docker
parentba7546d14e6b4436682f1c26028a4d872a0b5885 (diff)
parent4397b6e3dbfbc6bed8f7b653ba1b6093dbe51f5c (diff)
downloadopenshift-89b4e7070dc57aea6c2e1dc038348142ed4c747a.tar.gz
openshift-89b4e7070dc57aea6c2e1dc038348142ed4c747a.tar.bz2
openshift-89b4e7070dc57aea6c2e1dc038348142ed4c747a.tar.xz
openshift-89b4e7070dc57aea6c2e1dc038348142ed4c747a.zip
Merge pull request #3044 from mtnbikenc/docker-options
Add new option 'docker_selinux_enabled'
Diffstat (limited to 'roles/docker')
-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 %}\