mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
19 lines
456 B
YAML
19 lines
456 B
YAML
---
|
|
- name: Ensure host with random password
|
|
hosts: ipaserver
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Host "{{ 'host1.' + ipaserver_domain }}" present with random password
|
|
ipahost:
|
|
ipaadmin_password: SomeADMINpassword
|
|
name: "{{ 'host1.' + ipaserver_domain }}"
|
|
random: yes
|
|
force: yes
|
|
update_password: on_create
|
|
register: ipahost
|
|
|
|
- name: Print generated random password
|
|
debug:
|
|
var: ipahost.host.randompassword
|