Add podman configuration to prevent containers using the host /etc/hosts.
This commit is contained in:
parent
ec93d67b71
commit
470f0189d8
7
roles/role_configure_ovh_instance/files/containers.conf
Normal file
7
roles/role_configure_ovh_instance/files/containers.conf
Normal 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"
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user