Merge "Set resolv.conf on nodes before bootstrap"
This commit is contained in:
commit
262ee6a7cb
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
dns_nameservers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
|
@ -0,0 +1 @@
|
|||
- template: src=resolv.conf.j2 dest=/etc/resolv.conf
|
|
@ -0,0 +1,3 @@
|
|||
{% for s in dns_nameservers %}
|
||||
nameserver {{ s }}
|
||||
{% endfor %}
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# file: set_resolv_conf.yml
|
||||
- hosts: infra
|
||||
gather_facts: no
|
||||
user: ubuntu
|
||||
become: true
|
||||
roles:
|
||||
- { role: set_resolv_conf }
|
Loading…
Reference in New Issue