Blame playbooks/host/hosts-present-with-randompasswords.yml

Packit Service 0a38ef
---
Packit Service 0a38ef
- name: Hosts present with random passwords
Packit Service 0a38ef
  hosts: ipaserver
Packit Service 0a38ef
  become: true
Packit Service 0a38ef
Packit Service 0a38ef
  tasks:
Packit Service 0a38ef
  - name: Hosts host01.example.com and host01.example.com present with random passwords
Packit Service 0a38ef
    ipahost:
Packit Service 0a38ef
      ipaadmin_password: SomeADMINpassword
Packit Service 0a38ef
      hosts:
Packit Service 0a38ef
      - name: host01.example.com
Packit Service 0a38ef
        random: yes
Packit Service 0a38ef
        force: yes
Packit Service 0a38ef
      - name: host02.example.com
Packit Service 0a38ef
        random: yes
Packit Service 0a38ef
        force: yes
Packit Service 0a38ef
    register: ipahost
Packit Service 0a38ef
Packit Service 0a38ef
  - name: Print generated random password for host01.example.com
Packit Service 0a38ef
    debug:
Packit Service 0a38ef
      var: ipahost.host["host01.example.com"].randompassword
Packit Service 0a38ef
Packit Service 0a38ef
  - name: Print generated random password for host02.example.com
Packit Service 0a38ef
    debug:
Packit Service 0a38ef
      var: ipahost.host["host02.example.com"].randompassword