mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
users.json is generated for the tests and not part of the repo any more.
This test was lacking the include to generate the file.
Related to: b7e1a99b6e
tests/user/test_users*.yml: Use extended dynamic users.json
23 lines
516 B
YAML
23 lines
516 B
YAML
---
|
|
- name: Include create_users_json.yml
|
|
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
|
|
include_vars:
|
|
file: users.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 }}"
|