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 }}"
|
2019-08-21 08:09:29 +00:00
|
|
|
loop_control:
|
|
|
|
label: "{{ item.name }}"
|
2019-08-21 07:54:57 +00:00
|
|
|
become: True
|
|
|
|
become_user: root
|