Skip to content

Commit

Permalink
DLPX-93224 Remove unnecessary tasks related to python3.11 added by pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
palash-gandhi authored Jan 24, 2025
1 parent bc2998f commit 51591c9
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions bootstrap/roles/appliance-build.bootstrap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@
#

---
# The VSDK plugin requires python3.11. The deadsnakes PPA provides python3.11 on 24.04.
- name: Add deadsnakes PPA for python3.11 for vSDK
ansible.builtin.apt_repository:
repo: ppa:deadsnakes/ppa
state: present
- name: Stop unattended-upgrades systemd service in preparation for package removal
ansible.builtin.systemd:
name: unattended-upgrades
state: stopped
register: result_systemd_stop
failed_when: "result_systemd_stop is failed and 'Could not find the requested service' not in result_systemd_stop.msg"

- name: Remove unattended-upgrades package
ansible.builtin.apt:
name:
- unattended-upgrades
state: absent
purge: true

- name: Update apt cache and install apt packages
ansible.builtin.apt:
Expand All @@ -42,8 +50,8 @@
- man
- openjdk-8-jdk-headless
- pigz
# The VSDK plugin requires python3.11
- python3.11
- python3-passlib
- python3-pip
- qemu-system
- rename
- shellcheck
Expand All @@ -52,26 +60,13 @@
state: present
update_cache: true

- name: Stop unattended-upgrades systemd service in preparation for package removal
ansible.builtin.systemd:
name: unattended-upgrades
state: stopped
register: result_systemd_stop
failed_when: "result_systemd_stop is failed and 'Could not find the requested service' not in result_systemd_stop.msg"

- name: Remove unattended-upgrades package
ansible.builtin.apt:
name:
- unattended-upgrades
state: absent
purge: true

# aws-cli is distributed via snap on 24.04. While the package is not required by the product,
# awscli is distributed via pip or snap on 24.04. While the package is not required by the product,
# it is required by appliance-build itself.
- name: Install aws-cli snap package
community.general.snap:
name: aws-cli
classic: true
- name: Install awscli python package
ansible.builtin.pip:
name: awscli
break_system_packages: true
become: true

- name: Load ZFS kernel module.
community.general.modprobe:
Expand Down

0 comments on commit 51591c9

Please sign in to comment.