---
- name: Add Printing Packages
  apt: pkg=cups state=present

- name: Copy CUPS configuration data
  copy: src=cups dest=/etc owner=root group=lp mode=0644 directory_mode=0755
  notify:
  - cups

- name: Ensure driver directory exists
  file: path=/etc/cups/ppd state=directory owner=root group=lp mode=0755

- name: Install print drivers
  copy: src=driver.ppd dest=/etc/cups/ppd/{{ item }}.ppd owner=root group=lp mode=0644
  with_items:
  - Franklin
  - Gutenburg
  - Koster

- name: Copy cupsd.conf
  template: src=cupsd.conf dest=/etc/cups/cupsd.conf owner=root group=lp mode0644
  notify:
  - cups

- name: Copy CUPS Firewall rules
  copy: src=cups.rules dest=/etc/iptables.d owner=root group=root mode=0640
  notify:
  - iptables

---
- name: Add Printing Packages
  apt: pkg=cups state=present

- name: Copy CUPS configuration data
  copy: src=cups dest=/etc owner=root group=lp mode=0644 directory_mode=0755
  notify:
    - cups

- name: Ensure driver directory exists
  file: path=/etc/cups/ppd state=directory owner=root group=lp mode=0755

- name: Install print drivers
  copy: src=driver.ppd dest=/etc/cups/ppd/{{ item }}.ppd owner=root group=lp mode=0644
  with_items:
    - Franklin
    - Gutenburg
    - Koster

- name: Copy cupsd.conf
  template: src=cupsd.conf dest=/etc/cups/cupsd.conf owner=root group=lp mode=0644
  notify:
    - cups

- name: Copy CUPS Firewall rules
  copy: src=cups.rules dest=/etc/iptables.d owner=root group=root mode=0640
  notify:
    - iptables

Fix typo in printserver playbook
Fix typo in printserver playbook
