xoxys.cups/tasks/prepare.yml

19 lines
479 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 }}"
password: "{{ item.password | password_hash('sha512', inventory_hostname) }}"
groups: "{{ cups_admin_group }}"
state: present
loop: "{{ cups_admin_users }}"
become: True
become_user: root