Просмотр исходного кода

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

Kenny Woodson 7 лет назад
Родитель
Сommit
f546c6b42c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      playbooks/aws/openshift-cluster/build_ami.yml

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

@@ -26,7 +26,7 @@
   tasks:
   tasks:
   - name: set the user to perform installation
   - name: set the user to perform installation
     set_fact:
     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
       openshift_node_bootstrap: True
 
 
 # This is the part that installs all of the software and configs for the instance
 # This is the part that installs all of the software and configs for the instance