mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Use Fully Qualified Collection Name (FQCN) for ansible builtins. This is ansible.builtin.set_fact instead of set_fact for example and aplies for all actions that are part of ansible.builtin. All the replaced ansible.builtins: assert, command, copy, debug, fail, fetch, file, import_playbook, import_tasks, include_role, include_tasks, include_vars, package, set_fact, shell, slurp, stat, systemd
26 lines
723 B
YAML
26 lines
723 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
|
|
ansible.builtin.debug:
|
|
var: ipahost.host["host01.example.com"].randompassword
|
|
|
|
- name: Print generated random password for host02.example.com
|
|
ansible.builtin.debug:
|
|
var: ipahost.host["host02.example.com"].randompassword
|