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

lokole - moved shim

This commit is contained in:
Jerry Vonau 2020-01-04 05:41:53 -06:00
parent 86fc754acc
commit 6eb8f20de6

View file

@ -4,7 +4,7 @@
name: lokole name: lokole
enabled: yes enabled: yes
state: restarted state: restarted
when: lokole_enabled | bool when: lokole_enabled
- name: Disable 'lokole' service, if not lokole_enabled - name: Disable 'lokole' service, if not lokole_enabled
systemd: systemd:
@ -38,11 +38,25 @@
state: absent state: absent
when: (not lokole_enabled) and (not is_debuntu) when: (not lokole_enabled) and (not is_debuntu)
- name: Install {{ nginx_config_dir }}/lokole-nginx.conf from template
template:
src: lokole-nginx.conf.j2
dest: "{{ nginx_config_dir }}/lokole-nginx.conf"
when: lokole_enabled and nginx_enabled
- name: Restart Apache ({{ apache_service }}) to enable/disable http://box/lokole - name: Restart Apache ({{ apache_service }}) to enable/disable http://box/lokole
systemd: systemd:
daemon_reload: yes
name: "{{ apache_service }}" name: "{{ apache_service }}"
daemon_reload: yes
state: restarted state: restarted
when: apache_enabled
- name: Restart nginx to enable/disable http://box/lokole
systemd:
name: nginx
daemon_reload: yes
state: restarted
when: nginx_enabled
- name: Add 'lokole' variable values to {{ iiab_ini_file }} - name: Add 'lokole' variable values to {{ iiab_ini_file }}
ini_file: ini_file: