mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
27 lines
692 B
YAML
27 lines
692 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
|
|
|