mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 02:35:54 +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
776 B
YAML
26 lines
776 B
YAML
---
|
|
- name: Tests
|
|
hosts: ipaserver
|
|
become: true
|
|
gather_facts: True
|
|
|
|
tasks:
|
|
- name: Copy file containing password to server.
|
|
ansible.builtin.copy:
|
|
src: "{{ playbook_dir }}/password.txt"
|
|
dest: "{{ ansible_facts['env'].HOME }}/password.txt"
|
|
owner: "{{ ansible_user }}"
|
|
group: "{{ ansible_user }}"
|
|
mode: 0600
|
|
- name: Ensure symmetric vault exists with password from file.
|
|
ipavault:
|
|
ipaadmin_password: SomeADMINpassword
|
|
name: symvault
|
|
username: admin
|
|
vault_type: symmetric
|
|
vault_password_file: "{{ ansible_facts['env'].HOME }}/password.txt"
|
|
- name: Remove file containing password from server.
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_facts['env'].HOME }}/password.txt"
|
|
state: absent
|