Blame playbooks/user/ensure_users_with_randompasswords.yml

Packit Service 0a38ef
---
Packit Service 0a38ef
- name: Tests
Packit Service 0a38ef
  hosts: ipaserver
Packit Service 0a38ef
  become: true
Packit Service 0a38ef
Packit Service 0a38ef
  tasks:
Packit Service 0a38ef
  - name: Users user1 and user1 present with random password
Packit Service 0a38ef
    ipauser:
Packit Service 0a38ef
      ipaadmin_password: SomeADMINpassword
Packit Service 0a38ef
      users:
Packit Service 0a38ef
      - name: user1
Packit Service 0a38ef
        first: first1
Packit Service 0a38ef
        last: last1
Packit Service 0a38ef
        random: yes
Packit Service 0a38ef
      - name: user2
Packit Service 0a38ef
        first: first2
Packit Service 0a38ef
        last: last2
Packit Service 0a38ef
        random: yes
Packit Service 0a38ef
      update_password: on_create
Packit Service 0a38ef
    register: ipauser
Packit Service 0a38ef
Packit Service 0a38ef
  - name: Print generated random password for user1
Packit Service 0a38ef
    debug:
Packit Service 0a38ef
      var: ipauser.user.user1.randompassword
Packit Service 0a38ef
Packit Service 0a38ef
  - name: Print generated random password for user2
Packit Service 0a38ef
    debug:
Packit Service 0a38ef
      var: ipauser.user.user2.randompassword