xoxys.cups/tasks/prepare.yml
Robert Kaussow 9606e186a5
All checks were successful
continuous-integration/drone/push Build is passing
fix: fix used salt in password hash
2021-06-05 16:01:16 +02:00

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