Commit 1c63624e authored by rgaudin's avatar rgaudin

using new exfat module for kernel and pi4, rf unblock on start and py3-setuptools

parent 24252634
Pipeline #158833 failed with stage
in 136 minutes and 3 seconds
[Unit]
Description=Ublock RF devices
DefaultDependencies=no
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin rfkill ublock all
......@@ -28,7 +28,7 @@
- name: download exfat kernel module
unarchive:
src: "{{ mirror }}/dev/exfat_{{ kernel_version }}.tar"
src: "{{ mirror }}/dev/exfat_{{ kernel_version }}_buster.tar"
dest: /tmp/
remote_src: True
tags: master
......@@ -38,6 +38,7 @@
with_items:
- "{{ kernel_version }}"
- "{{ kernel_version }}-v7"
- "{{ kernel_version }}-v7l"
tags: master
- name: make temp directories to fool depmod
......@@ -47,6 +48,7 @@
with_items:
- "{{ kernel_version }}"
- "{{ kernel_version }}-v7"
- "{{ kernel_version }}-v7l"
tags: master
- name: create symlinks to fool depmod
......@@ -57,6 +59,7 @@
with_items:
- "{{ kernel_version }}"
- "{{ kernel_version }}-v7"
- "{{ kernel_version }}-v7l"
tags: master
- name: regenerate modules list
......@@ -64,6 +67,7 @@
with_items:
- "{{ kernel_version }}"
- "{{ kernel_version }}-v7"
- "{{ kernel_version }}-v7l"
tags: master
- name: add exfat module to startup list
......@@ -83,6 +87,16 @@
when: has_exfat.stdout.strip()|int == 0
tags: master
- name: create systemd-service to ublock RF on start
copy:
src: unblock-rf.service
dest: /etc/systemd/system/unblock-rf.service
tags: master
- name: reload systemd
command: systemctl daemon-reload
tags: master
- name: remove raspi sources
file:
path: /etc/apt/sources.list.d/raspi.list
......@@ -106,12 +120,6 @@
when: ansible_distribution_release == "stretch"
tags: master
- name: install jessie debian keyring
apt:
deb: http://ftp.fr.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2017.5~deb8u1_all.deb
when: ansible_distribution_release == "jessie"
tags: master
- name: Drop a complete sources.list
copy:
src: sources_{{ ansible_distribution_release }}.list
......@@ -139,7 +147,7 @@
- name: Install or upgrade all required package
apt:
name: python-dev,git,sudo,lsb-release,vim,locate,git,unzip,bash-completion,aptitude,ntpdate,fake-hwclock,hdparm,ncurses-term,libffi-dev,libssl-dev,tree,screen,iftop,tmux,mtr-tiny,libwww-perl,httpie,lshw,hwinfo,sqlite3,elinks,mosh,curl,apt-transport-https,tar,exfat-utils,gzip,hostname,liblzma5,pkg-config,systemd,systemd-sysv,tzdata,wget,xz-utils,adduser,libpam-systemd,policykit-1
name: python-dev,git,sudo,lsb-release,vim,locate,git,unzip,bash-completion,aptitude,ntpdate,fake-hwclock,hdparm,ncurses-term,libffi-dev,libssl-dev,tree,screen,iftop,tmux,mtr-tiny,libwww-perl,httpie,lshw,hwinfo,sqlite3,elinks,mosh,curl,apt-transport-https,tar,exfat-fuse,exfat-utils,gzip,hostname,liblzma5,pkg-config,systemd,systemd-sysv,tzdata,wget,xz-utils,adduser,libpam-systemd,policykit-1,python3-setuptools
state: latest
autoremove: yes
autoclean: yes
......@@ -148,12 +156,6 @@
- import_tasks: clean_apt.yml
tags: master
- name: install newer exfat-utils from bower
apt:
deb: "{{ mirror }}/dev/exfat-utils_1.2.8-1_armhf.deb"
when: ansible_distribution_release != "buster"
tags: master
- name: Install avahi packages
apt:
name: "{{ item }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment