Skip to content

Initial Ubuntu 22.04 support #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tasks/base/Ubuntu-22/install_dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
- name: Install base dependencies
apt:
name: "{{ packages }}"
update_cache: yes
install_recommends: yes
state: present
register: apt_res
retries: 3
until: apt_res is success
vars:
packages:
- xfsprogs
- acl
19 changes: 19 additions & 0 deletions tasks/base/Ubuntu-22/install_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
- name: Add docker repository key
apt_key:
url: "{{ docker_version_map[docker_version]['keys']['server'] }}"
id: "{{ docker_version_map[docker_version]['keys']['id'] }}"

- name: Add docker repository
apt_repository:
repo: "{{ docker_version_map[docker_version]['repo'] }}"
state: present

- name: Install docker
apt:
name: "{{ docker_version_map[docker_version]['package'] }}"
update_cache: yes
state: present

- name: Pin docker-engine packet
shell: echo "docker-engine hold" | sudo dpkg --set-selections
5 changes: 5 additions & 0 deletions tasks/base/Ubuntu-22/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- include_tasks: install_dependencies.yml
- include_tasks: install_docker.yml
tags: [install_docker, destructive]

17 changes: 17 additions & 0 deletions vars/os_Ubuntu_22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
docker_unit_after: "multi-user.target"
docker_storage_driver: overlay2
bootloader_update_command: update-grub
conntrack_module: xt_conntrack

# Docker version mapping
docker_version_map:
"24.09":
package:
- docker-ce=5:24.0.9
- docker-ce-cli=5:24.0.9
- containerd.io
repo: deb https://download.docker.com/linux/ubuntu jammy stable
keys:
server: https://download.docker.com/linux/ubuntu/gpg
id: 0EBFCD88