add support for 22.04 in ubuntu/roles/common/tasks/main.yml

This commit is contained in:
Sadiq Saif 2022-06-26 16:04:59 -04:00
parent f06823a062
commit 797d48b52f
1 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,12 @@
---
# This playbook contains common plays that will be run all nodes.
- name: Install python-apt, aptitude, and debconf-utils
- name: Install python-apt, aptitude, and debconf-utils (20.04)
shell: apt-get update && apt-get -y install python-apt aptitude debconf-utils
when: ansible_distribution_release == 'focal'
- name: Install python-apt, aptitude, and debconf-utils (22.04)
shell: apt-get update && apt-get -y install python3-apt aptitude debconf-utils
when: ansible_distribution_release == 'jammy'
- name: Do any package upgrades
apt: upgrade=dist
- name: Set default locale to en_US.UTF-8