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 committed Jan 23, 2025
1 parent bc2998f commit 84b9ac7
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 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,6 @@
- man
- openjdk-8-jdk-headless
- pigz
# The VSDK plugin requires python3.11
- python3.11
- qemu-system
- rename
- shellcheck
Expand All @@ -52,20 +58,6 @@
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,
# it is required by appliance-build itself.
- name: Install aws-cli snap package
Expand Down

0 comments on commit 84b9ac7

Please sign in to comment.