osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ci/+/30473
)
Change subject: ansible/podman: install from debian repos
......................................................................
ansible/podman: install from debian repos
Podman is in the official debian repositories since debian 10, install
it from there instead of using a third-party repository.
Related: OS#5365
Change-Id: I01549915d2c8dfda5fa605a014a304229c3078f0
---
D ansible/roles/podman/tasks/debian.yml
M ansible/roles/podman/tasks/main.yml
2 files changed, 7 insertions(+), 38 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/73/30473/1
diff --git a/ansible/roles/podman/tasks/debian.yml
b/ansible/roles/podman/tasks/debian.yml
deleted file mode 100644
index e261a3f..0000000
--- a/ansible/roles/podman/tasks/debian.yml
+++ /dev/null
@@ -1,33 +0,0 @@
----
-
-- name: add apt https support
- apt:
- cache_valid_time: 3600
- update_cache: yes
- pkg:
- - apt-transport-https
- - gnupg
- - cron
- - ca-certificates
- when: ansible_distribution_major_version < 11
-
-- name: add docker gpg key to apt keyring
- apt_key:
- id: 2472D6D0D2F66AF87ABA8DA34D64390375060AA4
- url:
https://ftp.uni-stuttgart.de/opensuse/repositories/devel:/kubic:/libcontain…
obs_distro }}/Release.key
- when: ansible_distribution_major_version < 11
-
-- apt_repository:
- repo: "deb
https://ftp.uni-stuttgart.de/opensuse/repositories/devel:/kubic:/libcontain…
obs_distro }}/ /"
- state: present
- update_cache: yes
- when: ansible_distribution_major_version < 11
-
-- name: install podman
- apt:
- pkg:
- - podman
- - runc
- - buildah
- - skopeo
- - dnsmasq
diff --git a/ansible/roles/podman/tasks/main.yml b/ansible/roles/podman/tasks/main.yml
index 049f5c2..45a712d 100644
--- a/ansible/roles/podman/tasks/main.yml
+++ b/ansible/roles/podman/tasks/main.yml
@@ -1,7 +1,9 @@
---
-- name: Include tasks for Debian
- include_tasks: debian.yml
- when: (ansible_distribution in ['Debian', 'Raspbian'])
-
-# TODO: add other distributions below
+- name: install podman
+ apt:
+ pkg:
+ - podman
+ - buildah
+ # Has reasonable recommends needed for dns resolving etc.
+ install_recommends: yes
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/30473
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I01549915d2c8dfda5fa605a014a304229c3078f0
Gerrit-Change-Number: 30473
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange