#servicepost
Tilde (~
) does not expand to the user's home directory.
That does not work in #ansible's inventory:
[all:vars]
ansible_python_interpreter=/usr/bin/python
ansible_ssh_common_args="-F ~/.ssh/config.ansible"
[…]
That does work:
[all:vars]
ansible_python_interpreter=/usr/bin/python
ansible_ssh_common_args="-F {{ lookup('env', 'HOME') }}/.ssh/config.ansible"
[…]
2