mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
ansible-lint is issuing an warning when using '# noqa 505' instead of '#noqa missing-import' on playbooks. This patch changes all occurrences of the tag to use the newer format.
24 lines
623 B
YAML
24 lines
623 B
YAML
---
|
|
- name: Include create_users_json.yml
|
|
ansible.builtin.import_playbook: create_users_json.yml
|
|
|
|
- name: Test users present slice
|
|
hosts: ipaserver
|
|
become: true
|
|
gather_facts: false
|
|
|
|
vars:
|
|
slice_size: 500
|
|
tasks:
|
|
- name: Include users.json
|
|
ansible.builtin.include_vars:
|
|
file: users.json # noqa missing-import
|
|
- name: Size of users slice.
|
|
ansible.builtin.debug:
|
|
msg: "{{ users | length }}"
|
|
- name: Users present
|
|
ipauser:
|
|
ipaadmin_password: SomeADMINpassword
|
|
users: "{{ users[item : item + slice_size] }}"
|
|
loop: "{{ range(0, users | length, slice_size) | list }}"
|