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
20 lines
433 B
YAML
20 lines
433 B
YAML
---
|
|
- name: Ensure user with random password
|
|
hosts: ipaserver
|
|
become: true
|
|
|
|
tasks:
|
|
- name: User user1 present with random password
|
|
ipauser:
|
|
ipaadmin_password: SomeADMINpassword
|
|
name: user1
|
|
first: first1
|
|
last: last1
|
|
random: yes
|
|
update_password: on_create
|
|
register: ipauser
|
|
|
|
- name: Print generated random password
|
|
ansible.builtin.debug:
|
|
var: ipauser.user.randompassword
|