Merge "lxc_cache_resolvers [u'nameserver1',u'nameserver2'] fixing"
This commit is contained in:
commit
336d8daead
@ -121,7 +121,7 @@
|
|||||||
- generate_secrets
|
- generate_secrets
|
||||||
|
|
||||||
- name: Get the DNS servers in use on the host
|
- name: Get the DNS servers in use on the host
|
||||||
shell: grep nameserver /etc/resolv.conf
|
command: grep nameserver /etc/resolv.conf
|
||||||
register: nameservers
|
register: nameservers
|
||||||
when:
|
when:
|
||||||
- lxc_cache_resolvers is not defined
|
- lxc_cache_resolvers is not defined
|
||||||
@ -130,9 +130,9 @@
|
|||||||
|
|
||||||
- name: Set lxc_cache_resolvers fact
|
- name: Set lxc_cache_resolvers fact
|
||||||
set_fact:
|
set_fact:
|
||||||
lxc_cache_resolvers: "[\"{{ nameservers.stdout_lines | join('\",\"') }}\"]"
|
lxc_cache_resolvers: "{{ nameservers.stdout_lines }}"
|
||||||
when:
|
when:
|
||||||
- nameservers is defined
|
- lxc_cache_resolvers is not defined
|
||||||
tags:
|
tags:
|
||||||
- set-fact-lxc_cache_resolvers
|
- set-fact-lxc_cache_resolvers
|
||||||
|
|
||||||
|
@ -89,7 +89,8 @@ lxc_net_netmask: 255.255.255.0
|
|||||||
lxc_net_dhcp_range: 10.255.255.2,10.255.255.253
|
lxc_net_dhcp_range: 10.255.255.2,10.255.255.253
|
||||||
|
|
||||||
## LXC Container Settings
|
## LXC Container Settings
|
||||||
lxc_cache_resolvers: {{ lxc_cache_resolvers }}
|
lxc_cache_resolvers:
|
||||||
|
{{ lxc_cache_resolvers | to_nice_yaml }}
|
||||||
|
|
||||||
## Security hardening
|
## Security hardening
|
||||||
apply_security_hardening: true
|
apply_security_hardening: true
|
||||||
|
Loading…
Reference in New Issue
Block a user