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
785 B
YAML
26 lines
785 B
YAML
---
|
|
- name: Test vault
|
|
hosts: ipaserver
|
|
become: no
|
|
# Need to gather facts for ansible_env.
|
|
gather_facts: yes
|
|
|
|
tasks:
|
|
- name: Setup testing environment.
|
|
ansible.builtin.import_tasks: env_setup.yml
|
|
|
|
# vault requires 'ipaapi_context: client', and uses this
|
|
# context by defoult, so we test only for the case where
|
|
# 'ipaapi_context: server' is explicitly set.
|
|
- name: Execute with server context.
|
|
ipavault:
|
|
ipaadmin_password: SomeADMINpassword
|
|
ipaapi_context: server
|
|
name: ThisShouldNotWork
|
|
vault_type: standard
|
|
register: result
|
|
failed_when: not (result.failed and result.msg is regex("Context 'server' for ipavault not yet supported."))
|
|
|
|
- name: Cleanup testing environment.
|
|
ansible.builtin.import_tasks: env_cleanup.yml
|