ansible-role-users/tasks/main.yml

19 lines
372 B
YAML

- name: Load OS specific variables.
tags: always,users
ansible.builtin.include_vars:
file: "os_{{ ansible_facts['lsb']['id'] }}.yml"
- include_tasks:
file: groups.yml
tags: users
with_items: "{{ users }}"
loop_control:
loop_var: user
- include_tasks:
file: users.yml
tags: users
with_items: "{{ users }}"
loop_control:
loop_var: user