- name: Enable & (Re)Start 'cups' and 'cups-browsed' systemd services (if cups_enabled)
  systemd:
    #daemon_reload: yes
    name: "{{ item }}"
    enabled: yes
    state: restarted
  with_items:
    - cups
    - cups-browsed
  when: cups_enabled

- name: Disable & Stop 'cups' & 'cups-browsed' systemd services (if not cups_enabled)
  systemd:
    #daemon_reload: yes
    name: "{{ item }}"
    enabled: no
    state: stopped
  with_items:
    - cups
    - cups-browsed
  when: not cups_enabled


- name: Enable/Disable/Restart NGINX
  include_tasks: nginx.yml
