add podman role

This commit is contained in:
Ryan Cavicchioni 2022-08-30 07:49:41 -05:00
parent d55f62893d
commit ec17840809
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
---
podman_packages:
- podman
- podman-docker
- podman-remote
- containernetworking-plugins
podman_package_state: present
podman_service_name: podman.socket
podman_service_state: started
podman_service_enabled: true

View File

@ -0,0 +1,12 @@
---
- name: install podman packages
package:
name: "{{ item }}"
state: "{{ podman_package_state | default('present') }}"
loop: "{{ podman_packages }}"
- name: podman socket
service:
name: "{{ podman_service_name }}"
state: "{{ podman_service_state | default('started') }}"
enabled: "{{ podman_service_enabled | default(true) }}"