mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
The port is open anyway, just lose the /cups redirect, not worth dragging apache in. Still missing the nginx config to make apache work, nginx should really just use nginx directly.
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
- name: systemd daemon-reload
|
|
systemd:
|
|
daemon_reload: yes
|
|
|
|
- name: Enable & (Re)Start 'cups' and 'cups-browsed' systemd services (OS's other than Fedora 18)
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: yes
|
|
state: restarted
|
|
with_items:
|
|
- cups
|
|
- cups-browsed
|
|
when: cups_enabled
|
|
#when: cups_enabled and not is_F18
|
|
|
|
# - name: Enable & Start 'cups' systemd service (Fedora 18, for XO laptops)
|
|
# systemd:
|
|
# name: cups
|
|
# state: started
|
|
# enabled: yes
|
|
# when: cups_enabled and is_F18
|
|
|
|
- name: Permit headless admin of CUPS -- only works when CUPS daemon is running (if cups_enabled)
|
|
shell: "cupsctl --remote-admin"
|
|
when: cups_enabled
|
|
|
|
- name: Disable & Stop 'cups' & 'cups-browsed' systemd services (OS's other than Fedora 18)
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: no
|
|
state: stopped
|
|
with_items:
|
|
- cups
|
|
- cups-browsed
|
|
when: not cups_enabled
|
|
#when: not cups_enabled and not is_F18
|
|
|
|
# - name: Disable & Stop 'cups' systemd service (Fedora 18, for XO laptops)
|
|
# systemd:
|
|
# name: cups
|
|
# enabled: no
|
|
# state: stopped
|
|
# when: not cups_enabled and is_F18
|