I try to write an Ansible yml that reads the root-passwords from an encrypted vault-file and then pass it to become_pass:
- hosts: sirius
remote_user: ansusr
become: yes
vars_files:
- vault_vars.yml
become_pass: "{{ root_pass_sirius }}"
But this fails: ERROR! 'become_pass' is not a valid attribute for a Play
But why ? - According to the Ansible documentation this is a valid command.