diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-01-24 16:37:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 16:37:22 -0500 |
commit | 0bfe51d2a04ea42369431402b756b41ccbfc5c8e (patch) | |
tree | e940a5edb92a5726e7d2bdd597b551f7fd744fe5 /roles/openshift_buildoverrides | |
parent | 0880fba00d52398529ddc4a5f9e218a0a5994c42 (diff) | |
parent | 15203f8f7b59f80b849b2b69356baf3d73e9bac5 (diff) | |
download | openshift-0bfe51d2a04ea42369431402b756b41ccbfc5c8e.tar.gz openshift-0bfe51d2a04ea42369431402b756b41ccbfc5c8e.tar.bz2 openshift-0bfe51d2a04ea42369431402b756b41ccbfc5c8e.tar.xz openshift-0bfe51d2a04ea42369431402b756b41ccbfc5c8e.zip |
Merge pull request #3142 from bparees/forcepull_quotes
treat force_pull as a bool
Diffstat (limited to 'roles/openshift_buildoverrides')
-rw-r--r-- | roles/openshift_buildoverrides/tasks/main.yml | 9 | ||||
-rw-r--r-- | roles/openshift_buildoverrides/vars/main.yml | 3 |
2 files changed, 2 insertions, 10 deletions
diff --git a/roles/openshift_buildoverrides/tasks/main.yml b/roles/openshift_buildoverrides/tasks/main.yml index 82fce1c5b..87d0e6f21 100644 --- a/roles/openshift_buildoverrides/tasks/main.yml +++ b/roles/openshift_buildoverrides/tasks/main.yml @@ -1,13 +1,4 @@ --- -#- name: Set buildoverrides -# openshift_facts: -# role: buildoverrides -# local_facts: -# force_pull: "{{ openshift_buildoverrides_force_pull | default(None) }}" -# image_labels: "{{ openshift_buildoverrides_image_labels | default(None) }}" -# nodeselectors: "{{ openshift_buildoverrides_nodeselectors | default(None) }}" -# annotations: "{{ openshift_buildoverrides_annotations | default(None) }}" - - name: Set buildoverrides config structure openshift_facts: role: buildoverrides diff --git a/roles/openshift_buildoverrides/vars/main.yml b/roles/openshift_buildoverrides/vars/main.yml index f0f9c255b..cf49a6ebf 100644 --- a/roles/openshift_buildoverrides/vars/main.yml +++ b/roles/openshift_buildoverrides/vars/main.yml @@ -1,10 +1,11 @@ --- +force_pull: "{{ openshift_buildoverrides_force_pull | default('') }}" buildoverrides_yaml: BuildOverrides: configuration: apiVersion: v1 kind: BuildOverridesConfig - forcePull: "{{ openshift_buildoverrides_force_pull | default('', true) }}" + forcePull: "{{ '' if force_pull == '' else force_pull | bool }}" imageLabels: "{{ openshift_buildoverrides_image_labels | default(None) }}" nodeSelector: "{{ openshift_buildoverrides_nodeselectors | default(None) }}" annotations: "{{ openshift_buildoverrides_annotations | default(None) }}" |