xoxys.cups/tasks/install.yml
Robert Kaussow a2c3af18ca
Some checks failed
continuous-integration/drone/push Build is failing
add selinux tasks; restructuring
2019-02-12 23:31:40 +01:00

39 lines
996 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
notify: __cupsd_restart
- name: Install custom driver packages
yum:
name: "{{ cups_custom_driver_packages }}"
state: present
notify: __cupsd_restart
- 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