This repository has been archived on 2022-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.add-users/tasks/main.yml

19 lines
553 B
YAML
Raw Permalink Normal View History

2022-03-15 10:39:22 +00:00
---
- name: Ensure mandatory variables are configured
assert:
that: "{{ item }} is defined"
fail_msg: "You must define the '{{ item }}' variable"
with_items:
2022-05-31 07:14:59 +00:00
- add_users_user_accounts
2022-03-15 10:39:22 +00:00
- name: Include resource variables
2022-05-31 07:14:59 +00:00
include_vars: "{{ add_users_user_accounts }}"
2022-03-15 10:39:22 +00:00
tags:
# Note(d1): we already load in converge.yml so skip here
- molecule-notest
# Note(d1): Done in this way because https://stackoverflow.com/a/39041069
- name: Include user addition tasks
include: users.yml user={{ item }}
with_items: "{{ members }}"