- name:Permit headless admin of CUPS -- only works when cups daemon is running
shell:"cupsctl --remote-admin"
when:cups_enabled
- name:Disable services for cups
service:name={{ item }}
state=stopped
enabled=no
with_items:
- cups
- cups-browsed
when:not cups_enabled and not is_F18
- name:Disable services for cups for xo's
service:name=cups
state=stopped
enabled=no
when:not cups_enabled and is_F18
- name:add cups to service list
ini_file:dest={{ service_filelist }}
section=cups
option={{ item.option }}
value={{ item.value }}
with_items:
- option:name
value:'"Common UNIX Printing System (CUPS)"'
- option:description
value:'"CUPS is a modular printing system which allows a computer to act as a print server. A computer running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer."'