ansible: tilde-expand SSH key before passing to SSH; closes #334.
parent
9aa76cf9ce
commit
96f000c5ea
@ -1,2 +1,3 @@
|
|||||||
|
- import_playbook: config.yml
|
||||||
- import_playbook: timeouts.yml
|
- import_playbook: timeouts.yml
|
||||||
- import_playbook: variables.yml
|
- import_playbook: variables.yml
|
||||||
|
|||||||
@ -0,0 +1,19 @@
|
|||||||
|
# issue #334: test expanduser() on key file during config generation.
|
||||||
|
|
||||||
|
- name: integration/ssh/config.yml
|
||||||
|
hosts: test-targets
|
||||||
|
connection: ssh
|
||||||
|
vars:
|
||||||
|
ansible_private_key_file: ~/fakekey
|
||||||
|
tasks:
|
||||||
|
- meta: end_play
|
||||||
|
when: not is_mitogen
|
||||||
|
|
||||||
|
- mitogen_get_stack:
|
||||||
|
register: out
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that: |
|
||||||
|
out.result[0].kwargs.identity_file == (
|
||||||
|
lookup('env', 'HOME') + '/fakekey'
|
||||||
|
)
|
||||||
Loading…
Reference in New Issue