
Also updated docs generation code caused by deprecated properties in recent version of Sphinx. Change-Id: Ibbe5c8f6aefd53bd24a741d960871c4061b19ca6
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
# Copyright 2020 AT&T Intellectual Property. All other rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Disable systemd-resolved service
|
|
systemd:
|
|
state: stopped
|
|
enabled: no
|
|
masked: yes
|
|
daemon_reload: yes
|
|
name: systemd-resolved
|
|
become: yes
|
|
|
|
- name: Remove local stub dns from resolv.conf, if it exists
|
|
lineinfile:
|
|
path: /etc/resolv.conf
|
|
state: absent
|
|
regexp: '^nameserver.*127.0.0.1'
|
|
become: yes
|
|
|
|
- name: Add upstream nameservers in resolv.conf
|
|
blockinfile:
|
|
path: /etc/resolv.conf
|
|
block: |
|
|
nameserver 8.8.8.8
|
|
nameserver 8.8.4.4
|
|
become: yes
|