Re: [ansible-project] pass variables to main.yml of a role

2021-11-04 Thread dulhaver via Ansible Project
I found a solution here: https://www.dasblinkenlichten.com/ansible-roles-and-variables/ "In the role definition Variables can also be defined as part of a role. There are two places this can be done with variables defined in either the ‘vars’ or the ‘default’ directory of the role. Much in

[ansible-project] pass variables to main.yml of a role

2021-11-03 Thread dulhaver via Ansible Project
I have a couple of standalone playbooks which I am trying to transform to role-based execition. At the start I get the hostname in a user dialog https://pastebin.com/qR1zG9BR , then go in with the first play when ther is no ssh available on target yet to set up authorized_keys file, so I go in