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/molecule/default/converge.yml
decentral1se 65d5e5478f
All checks were successful
continuous-integration/drone/push Build is passing
use scoped var
2022-05-31 09:14:59 +02:00

29 lines
880 B
YAML

---
- name: Converge
hosts: all
vars:
add_users_user_accounts: files/members.yml
pre_tasks:
- name: Wait for Hetzner VPS networking to come up
pause:
seconds: 10
echo: false
- name: Include resource variables
include_vars: "{{ add_users_user_accounts }}"
# Note(d1): We create the accounts before the role since we do not make
# molecule test this part of the role under test because we do not setup
# the password store. So, instead, we ensure the other parts are working.
- name: Prepare user accounts for the new role
user:
name: "{{ item.username }}"
shell: /bin/bash
password: "$apr1$GILkREir$r2zDF8rr9Bl8We9UVXnZl1"
groups: "{{ user_groups }}"
append: true
update_password: always
with_items: "{{ members }}"
roles:
- role: autonomic.add-users