ansible-roles/admin-users/tasks/main.yml

17 lines
398 B
YAML
Raw Normal View History

---
- fail:
msg: only compatible with Debian >= 8
when:
2017-08-23 01:49:27 +02:00
- ansible_distribution != "Debian" or ansible_distribution_major_version | version_compare('8', '<')
- debug:
msg: "Warning: empty 'admin_users' variable, tasks will be skipped!"
when: admin_users == {}
2017-08-09 06:24:12 +02:00
- include: admin_user.yml
2017-05-20 19:55:42 +02:00
vars:
2017-05-19 22:29:28 +02:00
user: "{{ item.value }}"
with_dict: "{{ admin_users }}"
2017-08-09 06:24:12 +02:00
when: admin_users != {}