Browse Source

Make the `rhsm_register` value optional

This was a regression -- it used to be optional (defaulting to False),
but among some changes we ended up requiring it again.
Tomas Sedovic 7 years ago
parent
commit
2d5704d792
1 changed files with 1 additions and 1 deletions
  1. 1 1
      playbooks/provisioning/openstack/pre-install.yml

+ 1 - 1
playbooks/provisioning/openstack/pre-install.yml

@@ -9,7 +9,7 @@
 - hosts: OSEv3
   become: true
   roles:
-    - { role: subscription-manager, when: hostvars.localhost.rhsm_register, tags: 'subscription-manager', ansible_sudo: true }
+    - { role: subscription-manager, when: hostvars.localhost.rhsm_register|default(False), tags: 'subscription-manager', ansible_sudo: true }
     - { role: docker, tags: 'docker' }
     - { role: openshift-prep, tags: 'openshift-prep' }