mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 02:35:54 +00:00
The host's module example playbooks had syntax errors that prevented its execution. The tasks were described as dicts rather than lists.
26 lines
691 B
YAML
26 lines
691 B
YAML
---
|
|
- name: Hosts present with random passwords
|
|
hosts: ipaserver
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Hosts host01.example.com and host01.example.com present with random passwords
|
|
ipahost:
|
|
ipaadmin_password: SomeADMINpassword
|
|
hosts:
|
|
- name: host01.example.com
|
|
random: yes
|
|
force: yes
|
|
- name: host02.example.com
|
|
random: yes
|
|
force: yes
|
|
register: ipahost
|
|
|
|
- name: Print generated random password for host01.example.com
|
|
debug:
|
|
var: ipahost.host["host01.example.com"].randompassword
|
|
|
|
- name: Print generated random password for host02.example.com
|
|
debug:
|
|
var: ipahost.host["host02.example.com"].randompassword
|