Test Repo für Ansible Semaphore
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
314 B

---
- name: Setup Admin Users
hosts: all
become: true
tasks:
- name: Add admin users and assign groups
ansible.builtin.user:
name: "{{ item.name }}"
groups: "{{ groups_to_add }}"
append: yes
create_home: yes
shell: /bin/bash
loop: "{{ admin_users }}"