mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
remove workarounds for august stretch bugs (#233)
This commit is contained in:
parent
58f078da43
commit
17ae885dea
2 changed files with 0 additions and 26 deletions
|
@ -32,9 +32,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- ntp
|
- ntp
|
||||||
|
|
||||||
- name: disable the renaming of eth0
|
|
||||||
shell: sed -i -e 's/deadline fsck/deadline net.ifnames=0 fsck/' /boot/cmdline.txt
|
|
||||||
|
|
||||||
- name: increase the swap file size (kalite pip download fails)
|
- name: increase the swap file size (kalite pip download fails)
|
||||||
lineinfile: regexp="^CONF_SWAPSIZE"
|
lineinfile: regexp="^CONF_SWAPSIZE"
|
||||||
line=CONF_SWAPSIZE=500
|
line=CONF_SWAPSIZE=500
|
||||||
|
@ -59,11 +56,3 @@
|
||||||
service: name=iiab-rpi-root-resize
|
service: name=iiab-rpi-root-resize
|
||||||
enabled=yes
|
enabled=yes
|
||||||
|
|
||||||
- name: substitute jessie wifi driver on raspbian-9 workaround
|
|
||||||
get_url: url={{ iiab_download_url }}/{{ item }}
|
|
||||||
dest=/lib/firmware/brcm/
|
|
||||||
force=yes
|
|
||||||
with_items:
|
|
||||||
- brcmfmac43430-sdio.bin
|
|
||||||
- brcmfmac43430-sdio.txt
|
|
||||||
when: ansible_local.local_facts.os_ver == "raspbian-9"
|
|
||||||
|
|
15
runansible
15
runansible
|
@ -58,21 +58,6 @@ if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then
|
||||||
fi
|
fi
|
||||||
cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
|
cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
|
||||||
|
|
||||||
# raspbian-9 changes network interface names to include mac address
|
|
||||||
# which defeats copying an image from one SD card to another
|
|
||||||
raspbian_ver=`./scripts/local_facts.fact|grep os_ver|awk -F '"' '{print $4}'`
|
|
||||||
if [ "$raspbian_ver" == "raspbian-9" ]; then
|
|
||||||
grep net.ifnames=0 /boot/cmdline.txt
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
sed -i -r 's/deadline +fsck/deadline net.ifnames=0 fsck/' /boot/cmdline.txt
|
|
||||||
echo
|
|
||||||
echo "Kernel cmdline changed. Will now reboot so that network interface names will"
|
|
||||||
echo " be same for all raspberry pi\'s. Hit enter, and then restart this script"
|
|
||||||
read var
|
|
||||||
reboot
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
PLAYBOOK="iiab.yml"
|
PLAYBOOK="iiab.yml"
|
||||||
INVENTORY="ansible_hosts"
|
INVENTORY="ansible_hosts"
|
||||||
CWD=`pwd`
|
CWD=`pwd`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue