Rootless Podman Socket work
This commit is contained in:
1 parent
c25dea566c
commit
60295e3fd1
1 file changed
+9
-1
+9
-1
@@ -1,6 +1,6 @@
|
|||||||
- name: Install podman, podman networking plugins, and python support packages
|
- name: Install podman, podman networking plugins, and python support packages
|
||||||
dnf:
|
dnf:
|
||||||
name: ['podman', 'containernetworking-plugins', 'podman-plugins', 'python3-pip']
|
name: ['podman', 'containernetworking-plugins', 'podman-plugins', 'python3-pip', 'systemd-containers']
|
||||||
state: present
|
state: present
|
||||||
- name: Install podman-compose pip Package
|
- name: Install podman-compose pip Package
|
||||||
pip:
|
pip:
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
"{{ service_users }}"
|
"{{ service_users }}"
|
||||||
|
|
||||||
- name: Enable systemd-user session initialization over ssh
|
- name: Enable systemd-user session initialization over ssh
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/pam.d/sshd
|
dest: /etc/pam.d/sshd
|
||||||
@@ -22,6 +23,13 @@
|
|||||||
loop:
|
loop:
|
||||||
"{{ service_users }}"
|
"{{ service_users }}"
|
||||||
|
|
||||||
|
- name: Create machinectl bash alias
|
||||||
|
lineinfile:
|
||||||
|
path: "/home/{{ item }}/.bashrc"
|
||||||
|
regexp: '^alias su='
|
||||||
|
line: "alias su=\"machinectl shell --uid\""
|
||||||
|
loop: "{{ service_users}}"
|
||||||
|
|
||||||
- name: Enable permissive_container_t SELinux Context
|
- name: Enable permissive_container_t SELinux Context
|
||||||
selinux_permissive:
|
selinux_permissive:
|
||||||
name: container_t
|
name: container_t
|
||||||
|
|||||||
Reference in new issue
Block a user