I am very new to writing ansible syntax, and am working on writing my first playbook.
I want to set a password that I control for a user named admin2 but I cannot find a solid good example for creating the user and setting the password on a RHEL-variant (ALMA Linux):
- name: Add the user admin2
ansible.builtin.user:
name: admin2
comment: "Second admin account"
shell: /bin/bash
groups: users,wheel
append: yes
What can I do in a simple ansible play that enables me to set a password value?
I have seen a few different examples, but I don't know what to trust.