Merge "Use ANSIBLE_PRIVATE_KEY_FILE when adding hosts to inventory"

This commit is contained in:
Zuul 2020-02-13 00:03:33 +00:00 committed by Gerrit Code Review
commit b03e6bcff0
1 changed files with 1 additions and 2 deletions

View File

@ -188,7 +188,7 @@
user_public_key: "{{ user_public_key }}"
user_private_key: "{{ user_private_key }}"
user_private_key_file: "{{ user_private_key_file }}"
ansible_ssh_private_key_file: "{{ ansible_home }}/.ssh/id_rsa"
ansible_ssh_private_key_file: "{{ lookup('env', 'ANSIBLE_PRIVATE_KEY_FILE') | default(ansible_home ~ '/.ssh/id_rsa') }}"
changed_when: false
loop: '{{ set_ssh_servers | difference(((BlacklistedIpAddresses | length) < 1) | ternary([], BlacklistedIpAddresses)) }}'
@ -198,7 +198,6 @@
user: "{{ ssh_user | default('heat-admin') }}"
become: true
any_errors_fatal: true
strategy: free
roles:
- role: tripleo_create_admin
tripleo_admin_user: tripleo-admin