Merge pull request #17 from Macleykun/main

This commit is contained in:
Dadoum 2024-04-18 18:00:50 +02:00 committed by GitHub
commit a2fe6a019e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@
gather_facts: false
become: True
tasks:
- name: Setup podman
- name: Setup podman deps
ansible.builtin.package:
name: podman
state: present
@ -14,9 +14,18 @@
name: rootless
register: rootless_usr
- name: Make sure acl is installed for rootless
- name: Configure xdg_runtime
ansible.builtin.lineinfile:
line: "export XDG_RUNTIME_DIR=/run/user/{{rootless_usr.uid}}"
path: "/home/{{ rootless_usr.name }}/.bashrc"
- name: Install podman and deps
ansible.builtin.package:
name: acl
name:
- podman
- uidmap
- slirp4netns
- acl
state: present
- name: enable linger
@ -91,4 +100,4 @@
# ansible.builtin.lineinfile:
# line: "RandomizedDelaySec=1"
# regexp: "^RandomizedDelaySec"
# path: /home/rootless/.config/systemd/use
# path: /home/rootless/.config/systemd/use