xoxys.cups/tasks/prepare.yml

21 lines
562 B
YAML
Raw Normal View History

2019-08-21 07:54:57 +00:00
---
- 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 }}"
2021-06-05 14:01:16 +00:00
password: "{{ item.password | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}"
2019-08-21 07:54:57 +00:00
groups: "{{ cups_admin_group }}"
state: present
loop: "{{ cups_admin_users }}"
loop_control:
label: "{{ item.name }}"
2019-08-21 07:54:57 +00:00
become: True
become_user: root