Robert Kaussow
52d9bd121e
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Robert Kaussow <xoxys@rknet.org> Co-committed-by: Robert Kaussow <xoxys@rknet.org>
37 lines
968 B
YAML
37 lines
968 B
YAML
---
|
|
- block:
|
|
- name: Install cups
|
|
package:
|
|
name: "{{ cups_packages | default(__cups_packages) }}"
|
|
disable_gpg_check: yes
|
|
state: present
|
|
notify: __cupsd_restart
|
|
|
|
- name: Install extra packages
|
|
package:
|
|
name: "{{ cups_packages_extra }}"
|
|
state: present
|
|
notify: __cupsd_restart
|
|
|
|
- name: Deploy global config files
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/{{ item }}"
|
|
mode: 0640
|
|
loop:
|
|
- etc/cups/cupsd.conf
|
|
- etc/cups/cups-files.conf
|
|
notify: __cupsd_restart
|
|
|
|
- name: Update pamd rule's control in /etc/pam.d/cups
|
|
pamd:
|
|
name: cups
|
|
type: "{{ item.type }}"
|
|
control: "{{ item.control }}"
|
|
module_path: "{{ item.module }}"
|
|
module_arguments: "{{ item.arguments | default(omit) }}"
|
|
new_module_path: "{{ item.new_module }}"
|
|
loop: "{{ __pam_config }}"
|
|
become: True
|
|
become_user: root
|