1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-10-31 01:54:27 -04:00 committed by GitHub
parent a88099d7b8
commit d144e1b39c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,19 +12,19 @@
src: cupsd.conf
dest: /etc/cups/cupsd.conf
- name: Put an apache2 config file in place
- name: Install /etc/{{ apache_config_dir }}/cups.conf from template
template:
src: cups.conf
dest: "/etc/{{ apache_config_dir }}/"
- name: Create the link for sites-enabled (debuntu)
- name: Create symlink cups.conf from sites-enabled to sites-available (debuntu)
file:
src: /etc/apache2/sites-available/cups.conf
dest: /etc/apache2/sites-enabled/cups.conf
state: link
when: cups_enabled and is_debuntu
- name: Enable services for CUPS (OS's other than Fedora 18)
- name: Enable & Start services 'cups' and 'cups-browsed' (OS's other than Fedora 18)
service:
name: "{{ item }}"
state: started
@ -34,8 +34,8 @@
- cups-browsed
when: cups_enabled and not is_F18
- name: Enable services for CUPS (Fedora 18, for XO laptops)
service:
- name: Enable & Start service 'cups' (Fedora 18, for XO laptops)
systemd:
name: cups
state: started
enabled: yes
@ -45,8 +45,8 @@
shell: "cupsctl --remote-admin"
when: cups_enabled
- name: Disable services for CUPS (OS's other than Fedora 18)
service:
- name: Disable both CUPS services (OS's other than Fedora 18)
systemd:
name: "{{ item }}"
state: stopped
enabled: no
@ -56,15 +56,15 @@
when: not cups_enabled and not is_F18
- name: Disable services for CUPS (Fedora 18, for XO laptops)
service:
systemd:
name: cups
state: stopped
enabled: no
when: not cups_enabled and is_F18
- name: Add 'cups' to list of services at {{ iiab_ini_file }}
- name: Add 'cups' variable values to {{ iiab_ini_file }}
ini_file:
dest: "{{ iiab_ini_file }}"
path: "{{ iiab_ini_file }}"
section: cups
option: "{{ item.option }}"
value: "{{ item.value }}"