You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
852 B
29 lines
852 B
1 year ago
|
- name: Install podman, podman networking plugins, and python support packages
|
||
|
dnf:
|
||
|
name: ['podman', 'containernetworking-plugins', 'podman-plugins', 'python3-pip']
|
||
|
state: present
|
||
|
- name: Install podman-compose pip Package
|
||
|
pip:
|
||
|
name: podman-compose
|
||
|
state: present
|
||
|
- name: Create Service Users
|
||
|
user:
|
||
|
name: "{{ item }}"
|
||
|
loop:
|
||
|
"{{ service_users }}"
|
||
|
- name: Enable systemd-user session initialization over ssh
|
||
|
lineinfile:
|
||
|
dest: /etc/pam.d/sshd
|
||
|
line: "session optional pam_systemd.so"
|
||
|
|
||
|
# - name: Copy cni networking driver config into place
|
||
|
# blockinfile:
|
||
|
# name: "/etc/cni/net.d/podman.conflist"
|
||
|
# insertafter: "*\"plugins\": [*"
|
||
|
# block: " {
|
||
|
# \"type\": \"dnsname\",
|
||
|
# \"domainName\": \"dns.podman\",
|
||
|
# \"capabilities\": {
|
||
|
# \"aliases\": true
|
||
|
# }"
|