xoxys.cups/tasks/prepare.yml
Robert Kaussow 2059c109d0
All checks were successful
continuous-integration/drone/push Build is passing
fix group and user handling
2019-08-21 09:54:57 +02:00

19 lines
479 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 }}"
become: True
become_user: root