mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
- Replace outdated noqa 503 with noqa no-handler - Drop outdated and not needed noqa 505 for include_vars - Drop outdated noqa deprecated-command-syntax for ansible.builtin.shell using cmd tag These warnings have been reported by utils/lint_check.sh using ansible-lint 6.22.1.
36 lines
856 B
YAML
36 lines
856 B
YAML
---
|
|
- name: Include create_groups_json.yml
|
|
ansible.builtin.import_playbook: create_groups_json.yml
|
|
|
|
- name: Test groups absent
|
|
hosts: ipaserver
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
- name: Include groups.json
|
|
ansible.builtin.include_vars:
|
|
file: groups.json
|
|
|
|
- name: Initialize groups_names
|
|
ansible.builtin.set_fact:
|
|
groups_names: []
|
|
|
|
- name: Create dict with group names
|
|
ansible.builtin.set_fact:
|
|
groups_names: "{{ groups_names | default([]) + [{'name': item.name}] }}"
|
|
loop: "{{ group_list }}"
|
|
|
|
- name: Groups absent len:{{ group_list | length }}
|
|
ipagroup:
|
|
ipaadmin_password: SomeADMINpassword
|
|
groups: "{{ groups_names }}"
|
|
state: absent
|
|
|
|
- name: Remove groups.json
|
|
hosts: localhost
|
|
tasks:
|
|
- name: Remove groups.json
|
|
ansible.builtin.file:
|
|
state: absent
|
|
path: groups.json
|