diff --git a/setup-anisette-v3-ansible.yaml b/setup-anisette-v3-ansible.yaml index 8ca21b3..4339c69 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 @@ -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 \ No newline at end of file +# path: /home/rootless/.config/systemd/use