ansible-role-users/tasks/main.yml

19 lines
372 B
YAML
Raw Permalink Normal View History

2022-01-23 02:20:50 +01:00
- name: Load OS specific variables.
tags: always,users
ansible.builtin.include_vars:
2022-01-23 02:24:10 +01:00
file: "os_{{ ansible_facts['lsb']['id'] }}.yml"
2022-01-23 02:20:50 +01:00
- 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