mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
cleaner Ansible messaging
This commit is contained in:
parent
d8f0aca278
commit
9cd817e3ad
1 changed files with 6 additions and 6 deletions
|
@ -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
|
file: dest={{ doc_root }}/local_content
|
||||||
state=directory
|
state=directory
|
||||||
owner={{ apache_user }}
|
owner={{ apache_user }}
|
||||||
|
@ -31,24 +31,24 @@
|
||||||
state=absent
|
state=absent
|
||||||
when: not usb_lib_enabled
|
when: not usb_lib_enabled
|
||||||
|
|
||||||
- name: Add apache config for content directory
|
- name: Add Apache config for content directory
|
||||||
template: src=content_dir.conf
|
template: src=content_dir.conf
|
||||||
dest=/etc/{{ apache_config_dir }}
|
dest=/etc/{{ apache_config_dir }}
|
||||||
when: usb_lib_enabled
|
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
|
file: src=/etc/{{ apache_config_dir }}/content_dir.conf
|
||||||
dest=/etc/apache2/sites-enabled/content_dir.conf
|
dest=/etc/apache2/sites-enabled/content_dir.conf
|
||||||
state=link
|
state=link
|
||||||
when: is_debuntu
|
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
|
file: src=/etc/{{ apache_config_dir }}/content_dir.conf
|
||||||
dest=/etc/apache2/sites-enabled/content_dir.conf
|
dest=/etc/apache2/sites-enabled/content_dir.conf
|
||||||
state=absent
|
state=absent
|
||||||
when: is_debuntu and not usb_lib_enabled
|
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
|
file: name=/etc/{{ apache_config_dir }}/content_dir.conf
|
||||||
state=absent
|
state=absent
|
||||||
when: not usb_lib_enabled
|
when: not usb_lib_enabled
|
||||||
|
@ -62,6 +62,6 @@
|
||||||
- option: name
|
- option: name
|
||||||
value: usb-lib
|
value: usb-lib
|
||||||
- option: description
|
- 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
|
- option: enabled
|
||||||
value: "{{ usb_lib_enabled }}"
|
value: "{{ usb_lib_enabled }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue