Skip to content

Instantly share code, notes, and snippets.

@tuxis-ie
Created September 26, 2016 08:58
Show Gist options
  • Save tuxis-ie/2bc33b4149a8d9be236b3eb431321dc7 to your computer and use it in GitHub Desktop.
Save tuxis-ie/2bc33b4149a8d9be236b3eb431321dc7 to your computer and use it in GitHub Desktop.
Ansible realpath not working?
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