Resolvconf vars use facts values by default
This commit is contained in:
parent
f86967ff8d
commit
cf74b17bb9
|
@ -4,6 +4,7 @@
|
|||
* Allow to install Resolvconf.
|
||||
* Manage Resolvconf base configuration file.
|
||||
* Restart Resolvconf service if any modification on configuration file.
|
||||
* Resolvconf default configuration is set from ansible facts.
|
||||
|
||||
## v1.0.3
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ Manage some basics configuration for IPR's servers.
|
|||
* **basics__resolvconf_packages** : List of Resolvconf packages to install [default : `resolvconf`].
|
||||
* **basics__resolvconf_enabled** : Enable or disable support for Resolvconf [default : `False`].
|
||||
* **basics__resolvconf_domains** : List of domains used as search suffixes with Resolvconf [default : `{{ ansible_domain }}`].
|
||||
* **basics__resolvconf_nameservers** : List of nameservers to use to resolv host names with Resolvconf [default : `{{ ansible_dns.nameservers }}`].
|
||||
* **basics__resolvconf_service_name** : The Resolvconf service name to manage [default : `resolvconf`].
|
||||
|
||||
## Example Playbook
|
||||
|
@ -63,7 +64,7 @@ For LXC containers, you also have the possibility to disable the management of s
|
|||
## Resolvconf
|
||||
|
||||
* If specified, Resolvconf is installed to fix the domain's informations given by the DHCP server.
|
||||
* Configure a default configuration file with the given informations (list of domains) and system informations (list of nameserver).
|
||||
* Configure a default configuration file with the given informations (list of domains and nameservers).
|
||||
* Ensure to restart the service if any modification in configuration file.
|
||||
|
||||
## Development
|
||||
|
|
|
@ -24,6 +24,7 @@ basics__proxmox_host_disable: []
|
|||
# .. envvar:: basics__resolvconf_packages [[[
|
||||
#
|
||||
# List of Resolvconf packages to install.
|
||||
#
|
||||
basics__resolvconf_packages:
|
||||
- 'resolvconf'
|
||||
|
||||
|
@ -43,6 +44,13 @@ basics__resolvconf_enabled: False
|
|||
basics__resolvconf_domains:
|
||||
- '{{ ansible_domain }}'
|
||||
|
||||
# ]]]
|
||||
# .. envvar:: basics__resolvconf_nameservers [[[
|
||||
#
|
||||
# List of nameservers to use to resolv host names.
|
||||
#
|
||||
basics__resolvconf_nameservers: '{{ ansible_dns.nameservers }}'
|
||||
|
||||
# ]]]
|
||||
# .. envvar:: basics__resolvconf_service_name [[[
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This file is managed remotely, all changes will be lost
|
||||
{% for server in ansible_dns['nameservers'] %}
|
||||
{% for server in basics__resolvconf_nameservers %}
|
||||
nameserver {{ server }}
|
||||
{% endfor %}
|
||||
{% for domain in basics__resolvconf_domains %}
|
||||
|
|
Reference in New Issue