From d6ce3262500d6891d7b81cd7f99e84a65ed1fd9d Mon Sep 17 00:00:00 2001 From: Macley <26381427+Macleykun@users.noreply.github.com> Date: Sun, 24 Mar 2024 22:19:15 +0100 Subject: [PATCH 1/3] Add extra deps to make sure the container actually will work --- setup-anisette-v3-ansible.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/setup-anisette-v3-ansible.yaml b/setup-anisette-v3-ansible.yaml index 8ca21b3..40a0775 100644 --- a/setup-anisette-v3-ansible.yaml +++ b/setup-anisette-v3-ansible.yaml @@ -4,7 +4,7 @@ gather_facts: false become: True tasks: - - name: Setup podman + - name: Setup podman deps ansible.builtin.package: name: podman state: present @@ -16,7 +16,11 @@ - name: Make sure acl is installed for rootless ansible.builtin.package: - name: acl + name: + - podman + - uidmap + - slirp4netns + - acl state: present - name: enable linger @@ -91,4 +95,4 @@ # ansible.builtin.lineinfile: # line: "RandomizedDelaySec=1" # regexp: "^RandomizedDelaySec" -# path: /home/rootless/.config/systemd/use \ No newline at end of file +# path: /home/rootless/.config/systemd/use From 80137684070c5e2447dd4ef5a288e9eb70036723 Mon Sep 17 00:00:00 2001 From: Macley <26381427+Macleykun@users.noreply.github.com> Date: Sun, 24 Mar 2024 22:20:12 +0100 Subject: [PATCH 2/3] Set XDG_RUNTIME_DIR when doing su - rootless --- setup-anisette-v3-ansible.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup-anisette-v3-ansible.yaml b/setup-anisette-v3-ansible.yaml index 40a0775..b30ed14 100644 --- a/setup-anisette-v3-ansible.yaml +++ b/setup-anisette-v3-ansible.yaml @@ -14,6 +14,11 @@ name: rootless register: rootless_usr + - name: Configure xdg_runtime + ansible.builtin.lineinfile: + line: "export XDG_RUNTIME_DIR=/run/user/{{rootless_usr.uid}}" + path: "/home/{{ rootless_usr.name }}/.bashrc" + - name: Make sure acl is installed for rootless ansible.builtin.package: name: From 2242a4e274519dfeb28282891e6a54405442f8a2 Mon Sep 17 00:00:00 2001 From: Macley <26381427+Macleykun@users.noreply.github.com> Date: Sun, 24 Mar 2024 22:22:34 +0100 Subject: [PATCH 3/3] Update setup-anisette-v3-ansible.yaml --- setup-anisette-v3-ansible.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-anisette-v3-ansible.yaml b/setup-anisette-v3-ansible.yaml index b30ed14..4339c69 100644 --- a/setup-anisette-v3-ansible.yaml +++ b/setup-anisette-v3-ansible.yaml @@ -19,7 +19,7 @@ line: "export XDG_RUNTIME_DIR=/run/user/{{rootless_usr.uid}}" path: "/home/{{ rootless_usr.name }}/.bashrc" - - name: Make sure acl is installed for rootless + - name: Install podman and deps ansible.builtin.package: name: - podman