Skip to content

Commit

Permalink
Merge pull request #17 from Macleykun/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum authored Apr 18, 2024
2 parents 2ff3c1b + 2242a4e commit a2fe6a0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions setup-anisette-v3-ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
gather_facts: false
become: True
tasks:
- name: Setup podman
- name: Setup podman deps
ansible.builtin.package:
name: podman
state: present
Expand All @@ -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
Expand Down Expand Up @@ -91,4 +100,4 @@
# ansible.builtin.lineinfile:
# line: "RandomizedDelaySec=1"
# regexp: "^RandomizedDelaySec"
# path: /home/rootless/.config/systemd/use
# path: /home/rootless/.config/systemd/use

0 comments on commit a2fe6a0

Please sign in to comment.