mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update rpi.yml
This commit is contained in:
parent
d33d09b69f
commit
9f4f81ef5c
1 changed files with 11 additions and 11 deletions
|
@ -1,9 +1,9 @@
|
||||||
- name: nodogsplash dependencies
|
- name: Install package libmicrohttpd12 (Nodogsplash dependencies)
|
||||||
package:
|
package:
|
||||||
name: libmicrohttpd12
|
name: libmicrohttpd12
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Download nodogsplash software
|
- name: Download {{ iiab_download_url }}/{{ nodogsplash_arm_deb }} to {{ downloads_dir }}
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ iiab_download_url }}/{{ nodogsplash_arm_deb }}"
|
url: "{{ iiab_download_url }}/{{ nodogsplash_arm_deb }}"
|
||||||
dest: "{{ downloads_dir }}/{{ nodogsplash_arm_deb }}"
|
dest: "{{ downloads_dir }}/{{ nodogsplash_arm_deb }}"
|
||||||
|
@ -12,9 +12,9 @@
|
||||||
#async: 300
|
#async: 300
|
||||||
#poll: 5
|
#poll: 5
|
||||||
|
|
||||||
- name: Install nodogsplash
|
- name: Install Nodogsplash
|
||||||
apt:
|
apt:
|
||||||
deb="{{ downloads_dir }}/{{ nodogsplash_arm_deb }}"
|
deb: "{{ downloads_dir }}/{{ nodogsplash_arm_deb }}"
|
||||||
|
|
||||||
#- name: Create nodogsplash.service # deb file has one
|
#- name: Create nodogsplash.service # deb file has one
|
||||||
# template:
|
# template:
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
# group: root
|
# group: root
|
||||||
# mode: 0644
|
# mode: 0644
|
||||||
|
|
||||||
- name: Install custom files
|
- name: Install custom /etc/nodogsplash/nodogsplash.conf, /etc/nodogsplash/htdocs/splash.html
|
||||||
template:
|
template:
|
||||||
backup: no
|
backup: no
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
|
@ -38,23 +38,23 @@
|
||||||
- { src: 'splash.html.j2', dest: '/etc/nodogsplash/htdocs/splash.html', mode: '0644'}
|
- { src: 'splash.html.j2', dest: '/etc/nodogsplash/htdocs/splash.html', mode: '0644'}
|
||||||
|
|
||||||
# We should probably only start this service on next boot
|
# We should probably only start this service on next boot
|
||||||
- name: Enable nodogsplash service
|
- name: Enable & Start 'nodogsplash' systemd service, if nodogsplash_enabled
|
||||||
service:
|
systemd:
|
||||||
name: nodogsplash
|
name: nodogsplash
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
when: nodogsplash_enabled
|
when: nodogsplash_enabled
|
||||||
|
|
||||||
- name: Disable nodogsplash service
|
- name: Disable 'nodogsplash' systemd service, if not nodogsplash_enabled
|
||||||
service:
|
systemd:
|
||||||
name: nodogsplash
|
name: nodogsplash
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not nodogsplash_enabled
|
when: not nodogsplash_enabled
|
||||||
|
|
||||||
- name: Add 'nodogsplash' to list of services at {{ iiab_ini_file }}
|
- name: Add 'nodogsplash' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "{{ iiab_ini_file }}"
|
path: "{{ iiab_ini_file }}"
|
||||||
section: nodogsplash
|
section: nodogsplash
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue