Bläddra i källkod

Merge pull request #563 from tomassedovic/openshift-ansible-sudo

Set ansible_become for the OSEv3 group
Bogdan Dobrelya 7 år sedan
förälder
incheckning
d6c06b1bb0

+ 1 - 1
playbooks/provisioning/openstack/README.md

@@ -181,7 +181,7 @@ file, this is how you stat the provisioning process:
 
 Once it succeeds, you can install openshift by running:
 
-    ansible-playbook --become --user openshift --private-key ~/.ssh/openshift -i inventory/ openshift-ansible/playbooks/byo/config.yml
+    ansible-playbook --user openshift --private-key ~/.ssh/openshift -i inventory/ openshift-ansible/playbooks/byo/config.yml
 
 
 ## License

+ 4 - 0
playbooks/provisioning/openstack/sample-inventory/group_vars/OSEv3.yml

@@ -19,3 +19,7 @@ openshift_override_hostname_check: true
 # For POCs or demo environments that are using smaller instances than
 # the official recommended values for RAM and DISK, uncomment the line below.
 #openshift_disable_check: disk_availability,memory_availability
+
+# NOTE(shadower): Always switch to root on the OSEv3 nodes.
+# openshift-ansible requires an explicit `become`.
+ansible_become: true