xoxys.cups/tasks/install.yml
Robert Kaussow d84874d46b
All checks were successful
continuous-integration/drone/push Build is passing
remove iptables integration
2019-10-28 19:58:32 +01:00

36 lines
929 B
YAML

---
- block:
- name: Install cups
yum:
name: "{{ cups_packages | default(__cups_packages) }}"
state: present
notify: __cupsd_restart
- name: Install extra packages
yum:
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