Robert Kaussow
9606e186a5
All checks were successful
continuous-integration/drone/push Build is passing
21 lines
562 B
YAML
21 lines
562 B
YAML
---
|
|
- block:
|
|
- name: Create system groups
|
|
group:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ cups_system_groups }}"
|
|
|
|
- name: Create cups admin users
|
|
user:
|
|
comment: Cups Admin
|
|
name: "{{ item.name }}"
|
|
password: "{{ item.password | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}"
|
|
groups: "{{ cups_admin_group }}"
|
|
state: present
|
|
loop: "{{ cups_admin_users }}"
|
|
loop_control:
|
|
label: "{{ item.name }}"
|
|
become: True
|
|
become_user: root
|