diff --git a/roles/podman/defaults/main.yaml b/roles/podman/defaults/main.yaml new file mode 100644 index 0000000..ec59572 --- /dev/null +++ b/roles/podman/defaults/main.yaml @@ -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 diff --git a/roles/podman/tasks/main.yaml b/roles/podman/tasks/main.yaml new file mode 100644 index 0000000..f8ee9b3 --- /dev/null +++ b/roles/podman/tasks/main.yaml @@ -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) }}"