Browse Source

[bz1501271] Attempt to use ami ssh user and default to ansible_ssh_user.

Kenny Woodson 7 năm trước cách đây
mục cha
commit
f546c6b42c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      playbooks/aws/openshift-cluster/build_ami.yml

+ 1 - 1
playbooks/aws/openshift-cluster/build_ami.yml

@@ -26,7 +26,7 @@
   tasks:
   - name: set the user to perform installation
     set_fact:
-      ansible_ssh_user: "{{ openshift_aws_build_ami_ssh_user | default('root') }}"
+      ansible_ssh_user: "{{ openshift_aws_build_ami_ssh_user | default(ansible_ssh_user) }}"
       openshift_node_bootstrap: True
 
 # This is the part that installs all of the software and configs for the instance