Add podman configuration to prevent containers using the host /etc/hosts.

This commit is contained in:
yohan 2024-06-18 20:15:35 +02:00
parent ec93d67b71
commit 470f0189d8
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[containers]
# The hosts entries from the base hosts file are added to the containers hosts
# file. This must be either an absolute path or as special values "image" which
# uses the hosts file from the container image or "none" which means
# no base hosts file is used. The default is "" which will use /etc/hosts.
base_hosts_file = "none"

View File

@ -144,6 +144,12 @@
state: latest
become: true
- name: deploy containers.conf
ansible.builtin.copy:
src: containers.conf
dest: /etc/containers/containers.conf
become: true
- name: install mosh
ansible.builtin.package:
name: