mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
commit
7b1a2ec42a
7 changed files with 23 additions and 13 deletions
|
@ -8,7 +8,7 @@
|
||||||
# https://git.coolaj86.com/coolaj86/gitea-installer.sh
|
# https://git.coolaj86.com/coolaj86/gitea-installer.sh
|
||||||
|
|
||||||
# Information needed to install Gitea
|
# Information needed to install Gitea
|
||||||
gitea_version: 1.9.0
|
gitea_version: 1.9.2
|
||||||
iset_suffixes:
|
iset_suffixes:
|
||||||
i386: 386
|
i386: 386
|
||||||
x86_64: amd64
|
x86_64: amd64
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
owner: "root"
|
owner: "root"
|
||||||
|
|
||||||
- name: Run yarn install to get needed modules (CAN TAKE ~15 MINUTES)
|
- name: Run yarn install to get needed modules (CAN TAKE ~15 MINUTES)
|
||||||
command: sudo yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
|
command: yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
|
||||||
#command: yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
|
#command: sudo yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
|
||||||
#become: yes # Escalate to root, similar to 'sudo'
|
#become: yes # Escalate to root, similar to 'sudo'
|
||||||
args:
|
args:
|
||||||
chdir: "{{ internetarchive_dir }}"
|
chdir: "{{ internetarchive_dir }}"
|
||||||
|
@ -74,9 +74,9 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
- name: 'Update pre-existing install: sudo yarn upgrade'
|
- name: 'Update pre-existing install: yarn upgrade'
|
||||||
command: sudo yarn upgrade
|
command: yarn upgrade
|
||||||
#command: yarn upgrade
|
#command: sudo yarn upgrade
|
||||||
#become: yes # Escalate to root, similar to 'sudo'
|
#become: yes # Escalate to root, similar to 'sudo'
|
||||||
args:
|
args:
|
||||||
chdir: "{{ internetarchive_dir }}"
|
chdir: "{{ internetarchive_dir }}"
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
- name: Turn off hostapd when no wifi interface present or in "Appliance Mode"
|
||||||
|
set_fact:
|
||||||
|
hostapd_enabled: False
|
||||||
|
when: not iiab_wireless_lan_iface is defined or iiab_network_mode == "Appliance"
|
||||||
|
|
||||||
- name: Create /etc/hostapd/hostapd.conf from template
|
- name: Create /etc/hostapd/hostapd.conf from template
|
||||||
template:
|
template:
|
||||||
src: hostapd/hostapd.conf.j2
|
src: hostapd/hostapd.conf.j2
|
||||||
|
@ -5,16 +10,16 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: iiab_wireless_lan_iface is defined
|
when: discovered_wireless_iface != "none"
|
||||||
|
|
||||||
- name: Create /etc/hostapd/hostapd.conf.iiab from template
|
- name: Create backup /etc/hostapd/hostapd.conf.iiab from template
|
||||||
template:
|
template:
|
||||||
src: hostapd/iiab-hostapd.conf.j2
|
src: hostapd/iiab-hostapd.conf.j2
|
||||||
dest: /etc/hostapd/hostapd.conf.iiab
|
dest: /etc/hostapd/hostapd.conf.iiab
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: discovered_wireless_iface is defined
|
when: discovered_wireless_iface != "none"
|
||||||
|
|
||||||
- name: Use custom systemd unit file to start 'hostapd' service
|
- name: Use custom systemd unit file to start 'hostapd' service
|
||||||
template:
|
template:
|
||||||
|
@ -23,6 +28,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
when: discovered_wireless_iface != "none"
|
||||||
|
|
||||||
- name: Create /usr/bin/iiab-hotspot-on from template
|
- name: Create /usr/bin/iiab-hotspot-on from template
|
||||||
template:
|
template:
|
||||||
|
@ -53,7 +59,7 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: hostapd
|
name: hostapd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when: hostapd_enabled and iiab_wireless_lan_iface is defined and iiab_network_mode != "Appliance"
|
when: hostapd_enabled
|
||||||
|
|
||||||
- name: Record HOSTAPD_ENABLED to {{ iiab_env_file }}
|
- name: Record HOSTAPD_ENABLED to {{ iiab_env_file }}
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
line: 'deb http://dl.yarnpkg.com/debian/ stable main'
|
line: 'deb http://dl.yarnpkg.com/debian/ stable main'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: "Yarn | Update APT cache"
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: "Yarn | Install"
|
- name: "Yarn | Install"
|
||||||
package:
|
package:
|
||||||
name: yarn
|
name: yarn
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
CURR_VER="undefined" # Ansible version you currently have installed
|
CURR_VER="undefined" # Ansible version you currently have installed
|
||||||
GOOD_VER="2.8.3" # For XO laptops (pip install) & CentOS (yum install rpm)
|
GOOD_VER="2.8.4" # For XO laptops (pip install) & CentOS (yum install rpm)
|
||||||
# On other OS's we attempt the latest from PPA, which might be more recent
|
# On other OS's we attempt the latest from PPA, which might be more recent
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
CURR_VER="undefined" # Ansible version you currently have installed
|
CURR_VER="undefined" # Ansible version you currently have installed
|
||||||
GOOD_VER="2.7.12" # For XO laptops (pip install) & CentOS (yum install rpm)
|
GOOD_VER="2.7.13" # For XO laptops (pip install) & CentOS (yum install rpm)
|
||||||
# On other OS's we attempt the latest from PPA, which might be more recent
|
# On other OS's we attempt the latest from PPA, which might be more recent
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
CURR_VER="undefined" # Ansible version you currently have installed
|
CURR_VER="undefined" # Ansible version you currently have installed
|
||||||
GOOD_VER="2.8.3" # For XO laptops (pip install) & CentOS (yum install rpm)
|
GOOD_VER="2.8.4" # For XO laptops (pip install) & CentOS (yum install rpm)
|
||||||
# On other OS's we attempt the latest from PPA, which might be more recent
|
# On other OS's we attempt the latest from PPA, which might be more recent
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
Loading…
Reference in a new issue