Compare commits
No commits in common. "94770e68e56d7cf6118f876362e74c3c76c040c1" and "bdddd161cd930c1ccfe833618bffb624731032e9" have entirely different histories.
94770e68e5
...
bdddd161cd
10 changed files with 16 additions and 40 deletions
|
|
@ -9,12 +9,6 @@
|
|||
raspap_adblock: 0
|
||||
|
||||
tasks:
|
||||
- name: ensure lighttpd listens on port 8080
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/lighttpd/lighttpd.conf
|
||||
regexp: '^server.port'
|
||||
line: server.port=8080
|
||||
|
||||
- name: Check if RaspAP is already installed
|
||||
ansible.builtin.stat:
|
||||
path: /var/www/html/raspap
|
||||
|
|
@ -87,13 +81,6 @@
|
|||
- "set-hostapd-iface.service"
|
||||
- "avahi-daemon.service"
|
||||
|
||||
- name: Disable service raspapd restapi service
|
||||
ansible.builtin.file:
|
||||
path: "/etc/systemd/system/multi-user.target.wants/{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- "restapi.service"
|
||||
|
||||
- name: Copy dnsmasq config
|
||||
ansible.builtin.template:
|
||||
src: "butterbox-dnsmasq.conf.j2"
|
||||
|
|
@ -101,3 +88,13 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Restart service raspapd, issue daemon-reload to pick up config changes
|
||||
ansible.builtin.systemd_service:
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
name: "{{ item }}"
|
||||
when: not (is_vmdb2 | bool)
|
||||
with_items:
|
||||
- raspapd
|
||||
- set-hostapd-iface
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: Copy systemd services
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}"
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vmdb2_config_base_dir }}/{{ item }}"
|
||||
dest: "/etc/systemd/system/{{ item }}"
|
||||
mode: '0644'
|
||||
loop:
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: Copy wpa_supplicant config
|
||||
ansible.builtin.template:
|
||||
src: "wpa_supplicant.conf"
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vmdb2_config_base_dir }}/wpa_supplicant.conf"
|
||||
dest: /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
force: true
|
||||
mode: '0644'
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ beacon_int=100
|
|||
ssid={{ butter_name }}
|
||||
channel=1
|
||||
hw_mode=g
|
||||
ieee80211ac=1
|
||||
ieee80211n=0
|
||||
interface=wlan0
|
||||
wpa=none
|
||||
wpa_pairwise=CCMP
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ server {
|
|||
}
|
||||
|
||||
location ^~ /raspap {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
alias /var/www/html/raspap;
|
||||
}
|
||||
|
||||
location ^~ /_matrix {
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
[Unit]
|
||||
Description=Serve USB content
|
||||
BindTo=dev-%i.device
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c '/usr/bin/on-usb-drive-mounted.sh /dev/%i'
|
||||
ExecStop=/bin/sh -c 'rm /media/usb-butter/'
|
||||
RemainAfterExit=yes
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[Unit]
|
||||
Description=Mount service
|
||||
BindTo=dev-%i.device
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c '/usr/bin/udisksctl mount -b /dev/%i'
|
||||
ExecStop=/bin/sh -c '/usr/bin/udisksctl unmount -b /dev/%i'
|
||||
RemainAfterExit=yes
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
country=US
|
||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||
ap_scan=1
|
||||
|
|
@ -98,7 +98,6 @@ steps:
|
|||
- python3-packaging
|
||||
- python3-virtualenv
|
||||
- nginx
|
||||
- lighttpd
|
||||
- unzip
|
||||
- sudo
|
||||
- systemd-timesyncd
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@ steps:
|
|||
- python3-packaging
|
||||
- python3-virtualenv
|
||||
- nginx
|
||||
- lighttpd
|
||||
- git
|
||||
- unzip
|
||||
- sudo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue