infra/ansible/roles/nomad_client/tasks/podman.yml

40 lines
653 B
YAML

---
- name: ensure podman group
group:
name: podman
state: present
system: True
- name: ensure podman user
user:
name: podman
state: present
group: podman
system: True
- name: ensure podman is installed
apt:
name:
- fuse-overlayfs
- podman
- slirp4netns
- uidmap
state: present
- name: ensure containers.conf is configured
file:
src: containers.conf
dest: /etc/containers/containers.conf
owner: root
group: root
mode: 0644
- name: enable podman
systemd:
name: podman
state: started
enabled: False
daemon_reload: True
changed_when: False
...