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 for the first play with user/pw combination which I want to pass as variables. - hosts: target_host_group vars_files: defaults.yml vars: ansible_ssh_pass: superawesomepwd ansible_user: user I am aware that I need to make sure this is safe (probably using vault) yet, but that is not the point of my question here. What I need to figure out is how to pass the paragraph above in the main.yaml of my initial role (and only that role, not the other ones). using the syntax above or just --- vars_files: defaults.yml vars: ansible_ssh_pass: superawesomepwd ansible_user: user - name: here comes the first asctual TASK ... ... does not work. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1493512520.2560.1636002362368%40office.mailbox.org.