mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-04-19 07:10:56 +00:00
Most tests have simply been using the Tests as name, but this there is a lack of information in automated runs. The name should be similar to the test file name.
20 lines
452 B
YAML
20 lines
452 B
YAML
---
|
|
- name: Test users present slice
|
|
hosts: ipaserver
|
|
become: true
|
|
gather_facts: false
|
|
|
|
vars:
|
|
slice_size: 500
|
|
tasks:
|
|
- name: Include users_present.json
|
|
include_vars:
|
|
file: users_present.json
|
|
- 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 }}"
|