mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
goal is http://box/archive - clarify Ansible code
This commit is contained in:
parent
88a712f548
commit
bd4741add9
1 changed files with 5 additions and 5 deletions
|
@ -44,18 +44,18 @@
|
||||||
- { src: 'internetarchive.service.j2', dest: '/etc/systemd/system/internetarchive.service' }
|
- { src: 'internetarchive.service.j2', dest: '/etc/systemd/system/internetarchive.service' }
|
||||||
- { src: 'internetarchive.conf', dest: '/etc/apache2/sites-available/internetarchive.conf' }
|
- { src: 'internetarchive.conf', dest: '/etc/apache2/sites-available/internetarchive.conf' }
|
||||||
|
|
||||||
- name: Create symlink internetarchive.conf from sites-enabled to sites-available, for short URLs http://box/sugar & http://box/internetarchive (if internetarchive_enabled)
|
- name: Create symlink internetarchive.conf from sites-enabled to sites-available, for short URL http://box/archive (if debuntu and internetarchive_enabled)
|
||||||
file:
|
file:
|
||||||
src: /etc/apache2/sites-available/internetarchive.conf
|
src: /etc/apache2/sites-available/internetarchive.conf
|
||||||
path: /etc/apache2/sites-enabled/internetarchive.conf
|
path: /etc/apache2/sites-enabled/internetarchive.conf
|
||||||
state: link
|
state: link
|
||||||
when: internetarchive_enabled and is_debuntu
|
when: is_debuntu and internetarchive_enabled
|
||||||
|
|
||||||
- name: Remove symlink /etc/apache2/sites-enabled/internetarchive.conf (if not internetarchive_enabled)
|
- name: Remove symlink /etc/apache2/sites-enabled/internetarchive.conf (if debuntu and not internetarchive_enabled)
|
||||||
file:
|
file:
|
||||||
path: /etc/apache2/sites-enabled/internetarchive.conf
|
path: /etc/apache2/sites-enabled/internetarchive.conf
|
||||||
state: absent
|
state: absent
|
||||||
when: not internetarchive_enabled and is_debuntu
|
when: is_debuntu and not internetarchive_enabled
|
||||||
|
|
||||||
|
|
||||||
# RESTART/STOP SYSTEMD SERVICE
|
# RESTART/STOP SYSTEMD SERVICE
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not internetarchive_enabled
|
when: not internetarchive_enabled
|
||||||
|
|
||||||
- name: Restart Apache service ({{ apache_service }}) to enable/disable http://box/internetarchive (not just http://box:{{ internetarchive_port }})
|
- name: Restart Apache service ({{ apache_service }}) to enable/disable http://box/archive (not just http://box:{{ internetarchive_port }})
|
||||||
systemd:
|
systemd:
|
||||||
name: "{{ apache_service }}" # httpd or apache2
|
name: "{{ apache_service }}" # httpd or apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
Loading…
Reference in a new issue