Comments (3)
I have now fixed it in the new develop version.
from ansible.hosts.
Both options are now built in.
If lo is defined for ipv6, the entries are set automatically. Setting hosts_ipv6: false
prevents ipv6 entries from being created.
from ansible.hosts.
I just tried the develop branch with the modifications.
There is currently a problem in the hosts.j2 template.
Around line 19 you are using
hostvars[inventory_hostname]['ansible_default_ipv6']['address']
directly, without checking if it defined.
Because of that it did not work on my test host:
FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'address'"}
from ansible.hosts.
Related Issues (9)
- hosts_aliases is not Optionally
- misisng newline issue for hosts_dns_hostname
- Add an option to use inventory IP
- IPv6 entries are not getting generated HOT 2
- Add check if interface have ipv6
- "AnsibleError: template error while templating string: no filter named 'ansible.netcommon.ipaddr'. HOT 1
- Broken on `Ansible 2.11.6` / `Jinja2 3.0.3`? HOT 2
- No option to specify the `backup` flag to the template task HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible.hosts.