add podman role
This commit is contained in:
parent
d55f62893d
commit
ec17840809
11
roles/podman/defaults/main.yaml
Normal file
11
roles/podman/defaults/main.yaml
Normal 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
|
12
roles/podman/tasks/main.yaml
Normal file
12
roles/podman/tasks/main.yaml
Normal 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) }}"
|
Loading…
Reference in New Issue
Block a user