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-11-03 23:23:37 -04:00 committed by GitHub
parent 55e37830fa
commit bfe7fac07c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@
group: "{{ apache_user }}" group: "{{ apache_user }}"
state: directory state: directory
- name: Enable {{ apache_service }} systemd service - name: Enable Apache systemd service ({{ apache_service }})
service: service:
name: "{{ apache_service }}" name: "{{ apache_service }}"
enabled: yes enabled: yes
@ -163,7 +163,7 @@
state: directory state: directory
# SEE https://github.com/iiab/iiab/issues/1143 as the old roles/osm playbook is rarely used as of late 2018 (if anybody still uses roles/osm, they can overwrite osm.conf using the original osm playbook, or in other ways) # SEE https://github.com/iiab/iiab/issues/1143 as the old roles/osm playbook is rarely used as of late 2018 (if anybody still uses roles/osm, they can overwrite osm.conf using the original osm playbook, or in other ways)
- name: Copy osm.conf to /etc/{{ apache_config_dir }} for http://box/maps (all OS's) - name: Install /etc/{{ apache_config_dir }}/osm.conf for http://box/maps (all OS's)
copy: copy:
src: osm.conf src: osm.conf
dest: "/etc/{{ apache_config_dir }}" dest: "/etc/{{ apache_config_dir }}"
@ -172,7 +172,7 @@
mode: 0644 mode: 0644
backup: yes backup: yes
- name: Create osm.conf symlink from sites-enabled to sites-available (debuntu) - name: Symlink /etc/apache2/sites-enabled/osm.conf to /etc/{{ apache_config_dir }}/osm.conf (debuntu)
file: file:
src: "/etc/{{ apache_config_dir }}/osm.conf" src: "/etc/{{ apache_config_dir }}/osm.conf"
path: /etc/apache2/sites-enabled/osm.conf path: /etc/apache2/sites-enabled/osm.conf
@ -184,7 +184,7 @@
tags: tags:
- base - base
# Fixes search @ http://box/modules/es-wikihow - see https://github.com/iiab/iiab/issues/829 # Partially fixes search @ http://box/modules/es-wikihow (on RPi anyway) see https://github.com/iiab/iiab/issues/829
- include_tasks: php-stem.yml - include_tasks: php-stem.yml
tags: tags:
- base - base
@ -195,14 +195,14 @@
dest: /usr/bin/iiab-refresh-wiki-docs dest: /usr/bin/iiab-refresh-wiki-docs
mode: 0755 mode: 0755
- name: Give {{ apache_user }} (per variable apache_user) permission to poweroff - name: Give {{ apache_user }} (per variable apache_user) permission to poweroff, installing /etc/sudoers.d/020_apache_poweroff from template
template: template:
src: 020_apache_poweroff.j2 src: 020_apache_poweroff.j2
dest: /etc/sudoers.d/020_apache_poweroff dest: /etc/sudoers.d/020_apache_poweroff
mode: 0755 mode: 0755
when: apache_allow_sudo when: apache_allow_sudo
- name: Remove {{ apache_user }} (per variable apache_user) permission to poweroff - name: Remove {{ apache_user }} (per variable apache_user) permission to poweroff, removing /etc/sudoers.d/020_apache_poweroff
file: file:
path: /etc/sudoers.d/020_apache_poweroff path: /etc/sudoers.d/020_apache_poweroff
state: absent state: absent