mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Til wheels fixed: ansible-core 2.12.10+ PPA on 32-bit RasPiOS
This commit is contained in:
parent
14a1b69113
commit
125d930bdb
1 changed files with 19 additions and 7 deletions
|
@ -128,6 +128,10 @@ fi
|
||||||
###echo "deb [signed-by=/usr/share/keyrings/iiab-ansible-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu $CODENAME main" \
|
###echo "deb [signed-by=/usr/share/keyrings/iiab-ansible-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu $CODENAME main" \
|
||||||
### > /etc/apt/sources.list.d/iiab-ansible.list
|
### > /etc/apt/sources.list.d/iiab-ansible.list
|
||||||
|
|
||||||
|
# 2022-11-09: ansible-core 2.12.10 PPA works on 32-bit RasPiOS, until upstream wheels -> cryptography is fixed (PR #3421)
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/iiab-ansible-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu focal main" \
|
||||||
|
> /etc/apt/sources.list.d/iiab-ansible.list
|
||||||
|
|
||||||
# In future we might instead consider 'add-apt-repository ppa:ansible/ansible'
|
# In future we might instead consider 'add-apt-repository ppa:ansible/ansible'
|
||||||
# or 'apt-add-repository ppa:ansible/bionic/ansible' etc, e.g. for streamlined
|
# or 'apt-add-repository ppa:ansible/bionic/ansible' etc, e.g. for streamlined
|
||||||
# removal using 'apt-add-repository -r' -- however that currently requires
|
# removal using 'apt-add-repository -r' -- however that currently requires
|
||||||
|
@ -147,6 +151,9 @@ fi
|
||||||
###cp /opt/iiab/iiab/scripts/iiab-ansible-keyring.gpg /usr/share/keyrings/iiab-ansible-keyring.gpg
|
###cp /opt/iiab/iiab/scripts/iiab-ansible-keyring.gpg /usr/share/keyrings/iiab-ansible-keyring.gpg
|
||||||
#chmod 644 /usr/share/keyrings/iiab-ansible-keyring.gpg
|
#chmod 644 /usr/share/keyrings/iiab-ansible-keyring.gpg
|
||||||
|
|
||||||
|
# 2022-11-09: ansible-core 2.12.10 PPA works on 32-bit RasPiOS, until upstream wheels -> cryptography is fixed (PR #3421)
|
||||||
|
cp /opt/iiab/iiab/scripts/iiab-ansible-keyring.gpg /usr/share/keyrings/iiab-ansible-keyring.gpg
|
||||||
|
|
||||||
###echo -e 'PPA source "deb [signed-by=/usr/share/keyrings/iiab-ansible-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu '$CODENAME' main"'
|
###echo -e 'PPA source "deb [signed-by=/usr/share/keyrings/iiab-ansible-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu '$CODENAME' main"'
|
||||||
###echo -e "successfully saved to /etc/apt/sources.list.d/iiab-ansible.list\n"
|
###echo -e "successfully saved to /etc/apt/sources.list.d/iiab-ansible.list\n"
|
||||||
###echo -e "IF *OTHER* ANSIBLE SOURCES APPEAR BELOW, PLEASE MANUALLY REMOVE THEM TO"
|
###echo -e "IF *OTHER* ANSIBLE SOURCES APPEAR BELOW, PLEASE MANUALLY REMOVE THEM TO"
|
||||||
|
@ -172,13 +179,18 @@ $APT_PATH/apt -y install python3-pip
|
||||||
|
|
||||||
#$APT_PATH/apt -y --allow-downgrades install ansible-core
|
#$APT_PATH/apt -y --allow-downgrades install ansible-core
|
||||||
|
|
||||||
# 2021-10-30: Using pip is messy, leaving behind cached files, so turn off pip
|
if uname -m | grep -q 64; then
|
||||||
# cache system-wide before installing:
|
# 2021-10-30: Using pip is messy, leaving behind cached files, so turn off pip
|
||||||
# https://stackoverflow.com/questions/9510474/removing-pips-cache/61762308#61762308
|
# cache system-wide before installing:
|
||||||
# https://github.com/iiab/iiab/pull/3022
|
# https://stackoverflow.com/questions/9510474/removing-pips-cache/61762308#61762308
|
||||||
pip3 config --global set global.no-cache-dir false
|
# https://github.com/iiab/iiab/pull/3022
|
||||||
echo -e "\n\n'pip3 install --upgrade ansible-core' will now run:\n"
|
pip3 config --global set global.no-cache-dir false
|
||||||
pip3 install --upgrade ansible-core # ansible-core 2.12 (released 2021-11-08) requires Python >= 3.8
|
echo -e "\n\n'pip3 install --upgrade ansible-core' will now run:\n"
|
||||||
|
pip3 install --upgrade ansible-core # ansible-core 2.12 (released 2021-11-08) requires Python >= 3.8
|
||||||
|
else
|
||||||
|
echo "2022-11-09: ansible-core 2.12.10 PPA works on 32-bit RasPiOS, using /etc/apt/sources.list.d/iiab-ansible.list, until upstream wheels -> cryptography is fixed (PR #3421)"
|
||||||
|
$APT_PATH/apt -y --allow-downgrades install ansible-core
|
||||||
|
fi
|
||||||
|
|
||||||
# (Re)running collection installs appears safe, with --force-with-deps to force
|
# (Re)running collection installs appears safe, with --force-with-deps to force
|
||||||
# upgrade of collection and dependencies it pulls in. Note Ansible may support
|
# upgrade of collection and dependencies it pulls in. Note Ansible may support
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue