32 lines
808 B
YAML
32 lines
808 B
YAML
---
|
|
- block:
|
|
- name: Copy cups rpms to destination host
|
|
copy:
|
|
src: "files/{{ item | basename }}"
|
|
dest: "{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0640
|
|
loop: "{{ __cups_rpm_files }}"
|
|
|
|
- name: Install cups rpms
|
|
yum:
|
|
name: "{{ __cups_rpm_files }}"
|
|
state: present
|
|
|
|
- name: Deploy global config files
|
|
template:
|
|
src: "etc/cups/cupsd.conf.j2"
|
|
dest: "/etc/cups/cupsd.conf"
|
|
mode: 0640
|
|
notify: __cupsd_restart
|
|
|
|
- name: Open ports in iptables
|
|
iptables_raw:
|
|
name: allow_cups
|
|
state: present
|
|
rules: '-A INPUT -m state --state NEW -p tcp --dport {{ cups_nginx_proxy_url.split(":")[1] }} -j ACCEPT'
|
|
when: cups_iptables_enabled
|
|
become: True
|
|
become_user: root
|