xoxys.cups/tasks/prepare.yml
Robert Kaussow be454f6d9e
All checks were successful
continuous-integration/drone/push Build is passing
add loop control to remove user passwords from log
2019-08-21 10:09:29 +02:00

21 lines
532 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', inventory_hostname) }}"
groups: "{{ cups_admin_group }}"
state: present
loop: "{{ cups_admin_users }}"
loop_control:
label: "{{ item.name }}"
become: True
become_user: root