I've been quite busy building a script. At some point I need to generate a password and store it in a file. The password is generated with
- name: Generate new password
debug:
ansible.builtin.debug:
var: lookup('community.general.random_string', length=32)
register: password
This worked better than expected, on all test runs it actually works. I added some more code to the playbook and now I keep getting
FAILED! => {"msg": "Invalid options for debug: ansible.builtin.debug"}
as an error message and I cannot figure out why this is now an issue.
Using CentOS.
/edited original posted code to include register: password