create cups admin user after installation
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-08-21 09:32:52 +02:00
parent 7fe1fad030
commit 7399845dbb
3 changed files with 7 additions and 11 deletions

View File

@ -22,6 +22,13 @@
- etc/cups/cups-files.conf
notify: __cupsd_restart
- name: Create user '{{ cups_admin_username }}'
user:
comment: Cups Admin
name: "{{ cups_admin_username }}"
password: "{{ cups_admin_password | password_hash('sha512', inventory_hostname) }}"
groups: printadmin
- name: Update pamd rule's control in /etc/pam.d/cups
pamd:
name: cups

View File

@ -1,5 +1,4 @@
---
- include_tasks: prepare.yml
- include_tasks: install.yml
- include_tasks: selinux.yml
when: ansible_selinux.status == "enabled"

View File

@ -1,10 +0,0 @@
---
- block:
- name: Create user '{{ cups_admin_username }}'
user:
comment: Cups Admin
name: "{{ cups_admin_username }}"
password: "{{ cups_admin_password | password_hash('sha512', inventory_hostname) }}"
groups: printadmin
become: True
become_user: root