1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

cleaner Ansible messaging

This commit is contained in:
A Holt 2017-10-27 09:53:42 -04:00 committed by GitHub
parent d8f0aca278
commit 9cd817e3ad

View file

@ -1,4 +1,4 @@
- name: Add a content directory for links to be located
- name: Add a content directory for links to be located
file: dest={{ doc_root }}/local_content
state=directory
owner={{ apache_user }}
@ -31,24 +31,24 @@
state=absent
when: not usb_lib_enabled
- name: Add apache config for content directory
- name: Add Apache config for content directory
template: src=content_dir.conf
dest=/etc/{{ apache_config_dir }}
when: usb_lib_enabled
- name: create the link to enable for debian
- name: Create the link to enable for Debian
file: src=/etc/{{ apache_config_dir }}/content_dir.conf
dest=/etc/apache2/sites-enabled/content_dir.conf
state=link
when: is_debuntu
- name: remove the link that enables in debian
- name: Remove the link that enables in Debian
file: src=/etc/{{ apache_config_dir }}/content_dir.conf
dest=/etc/apache2/sites-enabled/content_dir.conf
state=absent
when: is_debuntu and not usb_lib_enabled
- name: remove apache config for content directory
- name: Remove Apache config for content directory
file: name=/etc/{{ apache_config_dir }}/content_dir.conf
state=absent
when: not usb_lib_enabled
@ -62,6 +62,6 @@
- option: name
value: usb-lib
- option: description
value: '"usb-lib automounts a usb drive with and links to library content."'
value: '"usb-lib automounts a USB drives and links to library content."'
- option: enabled
value: "{{ usb_lib_enabled }}"