Created
September 26, 2016 08:58
-
-
Save tuxis-ie/2bc33b4149a8d9be236b3eb431321dc7 to your computer and use it in GitHub Desktop.
Ansible realpath not working?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On the machine: | |
root@proxmox01:/# ls -al /root/.ssh/authorized_keys | |
lrwxrwxrwx 1 root root 29 Sep 26 10:40 /root/.ssh/authorized_keys -> /etc/pve/priv/authorized_keys | |
In the playbook: | |
- debug: msg={{ '/root/.ssh/authorized_keys' | realpath }} | |
Output: | |
TASK [customers : debug] ******************************************************* | |
ok: [proxmox01] => { | |
"msg": "/root/.ssh/authorized_keys" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment