https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-encrypted-passwords-for-the-user-module as noted from https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html
On Fri, Apr 29, 2022 at 6:30 PM Warron French <[email protected]> wrote: > 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. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/3639d1fa-52eb-4dc7-bd40-9c2f87cd22fcn%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/3639d1fa-52eb-4dc7-bd40-9c2f87cd22fcn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- - Andrew "lathama" Latham - -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2Bqj4S_JQ03KrMw1%3D8yVkp-X7eJ%2BALV7ar5eq%2B%3DeP%2BGhQT5jgg%40mail.gmail.com.
