ansible-role-sudo/tasks/verify_vars.yml

9 lines
269 B
YAML
Raw Normal View History

2023-02-16 14:12:03 +00:00
---
- name: Verify if not user and group exists for each entry
ansible.builtin.assert:
that:
- (item.user is defined and item.group is not defined) or
(item.user is not defined and item.group is defined)
with_items:
- "{{ sudo_users_sudoers }}"