From ec1784080980585aee1bbb903fc6a0dda7a3562c Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Aug 2022 07:49:41 -0500 Subject: [PATCH] add podman role --- roles/podman/defaults/main.yaml | 11 +++++++++++ roles/podman/tasks/main.yaml | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 roles/podman/defaults/main.yaml create mode 100644 roles/podman/tasks/main.yaml 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) }}"