oefenweb / ansible-dnsmasq Goto Github PK
View Code? Open in Web Editor NEWAnsible role to set up Dnsmasq in Debian-like systems
License: MIT License
Ansible role to set up Dnsmasq in Debian-like systems
License: MIT License
Using multiple lines for the ansible_managed
variable causes an error when the template files are validated. Specifically, the first line of the file will be commented out, but every subsequent line of the ansible_managed
variable will be written to the config files as-is.
Proposal: Use Ansible's built-in comment
filter to template out the comment.
Instead of
# {{ ansible_managed }}
the line should read
{{ ansible_managed | comment }}
The comment filter can handle multiline strings without a problem.
Hi,
Thank you for this role! I am loving how simple it is to use it and how flexible it is. Unfortunately, I am getting the following warning when using it and I would love if this kept working in the future:
TASK [oefenweb.dnsmasq : install dependencies] ********************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use
`name: '{{ dnsmasq_dependencies }}'` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
Is there a way to fix this in a future version?
All the best,
Christophe-Marie
The role installs and configures dnsmasq in a debian-like system but it could be very useful if we could run this role for a redhat-like system.
Thanks.
I'm looking for a way I can append DNSMASQ_EXCEPT=lo
to /etc/default/dnsmasq
I imagine adding variable like dnsmasq_etc_default_options: []
Any thoughts?
I have a chicken and egg situation where systemd.resolved needs to be disabled before running this role, but doing so stops it from being able to apt install dnsmasq (repo fails to resolve).
It would be nice to have the role take care of this:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.