create cups admin user after installation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
7fe1fad030
commit
7399845dbb
@ -22,6 +22,13 @@
|
|||||||
- etc/cups/cups-files.conf
|
- etc/cups/cups-files.conf
|
||||||
notify: __cupsd_restart
|
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
|
- name: Update pamd rule's control in /etc/pam.d/cups
|
||||||
pamd:
|
pamd:
|
||||||
name: cups
|
name: cups
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: prepare.yml
|
|
||||||
- include_tasks: install.yml
|
- include_tasks: install.yml
|
||||||
- include_tasks: selinux.yml
|
- include_tasks: selinux.yml
|
||||||
when: ansible_selinux.status == "enabled"
|
when: ansible_selinux.status == "enabled"
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user