Add podman role

Fixes #12
This commit is contained in:
Kenneth Benzie 2024-04-06 15:00:54 +01:00
parent 035c9a7577
commit 883fee21b3
2 changed files with 27 additions and 0 deletions

View File

@ -7,4 +7,5 @@
- hosts: localhost
roles:
- role: gdb
- role: podman
- role: system-info

View File

@ -0,0 +1,26 @@
---
- name: install apt package
when: ansible_os_family == 'Debian'
become: true
apt:
name: podman
state: latest
- name: install dnf package
when: ansible_os_family == 'RedHat'
become: true
dnf:
name: podman
state: latest
- name: install Homebrew package
when: ansible_os_family == 'Darwin'
homebrew:
name: podman-desktop
state: latest
- name: install Chocolatey package
when: ansible_os_family == 'Windows'
win_chocolatey:
name: podman-desktop
state: latest