19 lines
479 B
YAML
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
|