Closed cmoulliard closed 3 years ago
I'll take a look on why the passwordstore is not storing the ip address correctly.
Another problem is that such a variable os_user
is not at all declared/define: https://github.com/snowdrop/k8s-infra/blob/366b00974f530d5662abc7d7f40cc52daa2b25f4/ansible/roles/hetzner/create_server/templates/user-data.j2#L23
I have fixed this on my branch.
Issue
When we execute the following commands
under k8s-infra project, then ansible reports the following error during the execution of the role
sec_host
Is the problem related to another issue which is that the property
ansible_ssh_host
does not exist ?The
ansible_ssh_host
is not created during the execution of this playbook :See result generated: https://gist.githubusercontent.com/cmoulliard/096729ecc24aa393d8b6dc2194c7ab51/raw/d58baee5946a0796957b335eb8da04fa3826d12b/gistfile1.txt
The
ip_address
of the vm is well created during the creation of the VM BUT it is not at all stored within thepasswordstore
db See: https://github.com/snowdrop/k8s-infra/blob/d6ea90e2fbb2e57c94b09c9c4307ad895032a2f2/ansible/roles/hetzner/create_server/tasks/main.yml#L58