-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible roles are not copying template configuration into container hosts #2060
Comments
Even simple linefile is not working
|
Which driver are you using? This seems like a driver issue and not something on the Molecule layer? |
I found answer on this comment , may be it help. |
Same here, when I manually edit the /etc/hosts it works. |
Editing |
so whats the correct solution for this ? |
Ran into this as well, so I understand that So for example:
When I I am going to work around it and see if I can resolve IPs on the node using my role and distribute these as facts and I saw others who run dnsmasq (in molecule), but I think that's a bit too much. :D Regardless, is there a better way to do this currently? |
Podman has option |
@sshnaidm I think I got a little further, but this doesn't have to do anything with Podman. I think it's more about the following:
I haven't dug into what changing The goal is still that "DNS resolution" works between
|
In this case all you need it's a link between containers. It could be done with setting them into one network as you did or adding |
This has nothing to do with Molecule, is pure Ansible user issue. |
PLAY [Configuration du Serveur DNS] ******************************************************************************************************************************************************************************* TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** TASK [configurez /etc/resolv.conf pour utiliser 8.8.8.8 comme serveur DNS] **************************************************************************************************************************************** PLAY RECAP ******************************************************************************************************************************************************************************************************** i have the same problem |
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Detail any linters or test runners used:
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
hostname: inpup01p1
image: puppetmaster:2.0
pre_build_image: True
privileged: True
volumes:
command: "/usr/sbin/init"
capabilities:
networks:
hostname: nocon01p1
image: centos:7.6
pre_build_image: True
privileged: True
volumes:
command: "/usr/sbin/init"
capabilities:
exposed_ports:
published_ports:
networks:
hostname: nocon02p1
image: centos:7.6
pre_build_image: True
privileged: True
volumes:
command: "/usr/sbin/init"
capabilities:
exposed_ports:
networks:
hostname: nocon03p1
image: centos:7.6
pre_build_image: True
privileged: True
volumes:
command: "/usr/sbin/init"
capabilities:
exposed_ports:
networks:
hostname: nocon04p1
image: centos:7.6
pre_build_image: True
privileged: True
volumes:
command: "/usr/sbin/init"
capabilities:
exposed_ports:
networks:
provisioner:
name: ansible
options:
vvv: true
lint:
name: ansible-lint
playbooks:
prepare: prepare.yaml
env:
ANSIBLE_ROLES_PATH: ../resources/roles/
verifier:
name: testinfra
lint:
name: flake8
prepare.yaml
gather_facts: true
vars:
hosts_add_basic_ipv6: false
hosts_add_ansible_managed_hosts: true
hosts_network_interface: eth1
hosts_entries:
- name: pulp
ip: 10.173.96.177
aliases:
- pulp
roles:
i am using this roles
https://github.com/bertvv/ansible-role-hosts.git
Desired Behavior
it should modify hosts file of every container.
Actual Behaviour
output of running
molecule --debug
.The text was updated successfully, but these errors were encountered: