containers.conf - no_hosts=true

This commit is contained in:
Mike Holloway committed 2024-12-26 21:21:29 -05:00
1 parent 2ee3e3ed6f
commit 0042aa91dd
2 files changed
+15

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
[containers]
no_hosts=true
+13
View File
@@ -32,6 +32,19 @@
- name: Generate podman shell completion scripts for bash - name: Generate podman shell completion scripts for bash
command: "podman completion bash" command: "podman completion bash"
- name: Disable hosts files for containers by default
file:
path: "/home/{{ service_users[0] }}/.config/containers/"
state: directory
become: yes
become_user: "{{ service_users[0] }}"
- copy:
src: containers.conf
dest: "/home/{{ service_users[0] }}/.config/containers/containers.conf"
become: yes
become_user: "{{ service_users[0] }}"
- name: Enable podman.socket for {{ service_users[0] }} - name: Enable podman.socket for {{ service_users[0] }}
systemd: systemd:
name: podman.socket name: podman.socket