From 3bc4b4c1748636382ae549c9644dc99ce6725ff0 Mon Sep 17 00:00:00 2001 From: ewtang Date: Thu, 22 Aug 2019 16:46:31 +0800 Subject: [PATCH] Use raw module for bootstrap-debian.yml (#5061) Updated Openstack to terraform 0.12 (#5062) * update openstack to terraform 0.12(.5) * replace cluter.tf with cluster.tfvars * update README.md to terraform 0.12 * update Openstack CI tests to use terraform 0.12 * specify terraform version in openstack README * gitlab CI to copy cluster.tfvars in case of openstack provider * The terraform/openstack dynamic inventory can read tfstate v4 (generated by terraform 0.12) and convert them internally ro v3 (as generated by terraform 0.11.x). Additionally the script has been updated to Python 3. --- roles/bootstrap-os/tasks/bootstrap-debian.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/bootstrap-os/tasks/bootstrap-debian.yml b/roles/bootstrap-os/tasks/bootstrap-debian.yml index aec6d78bd..74fe83a6f 100644 --- a/roles/bootstrap-os/tasks/bootstrap-debian.yml +++ b/roles/bootstrap-os/tasks/bootstrap-debian.yml @@ -50,6 +50,20 @@ - https_proxy is defined - need_https_proxy.rc != 0 +- name: Change Network Name Resolution configuration + raw: sed -i 's/^DNSSEC=yes/DNSSEC=allow-downgrade/g' /etc/systemd/resolved.conf + become: true + environment: {} + when: + - '"bionic" in os_release.stdout' + +- name: Restart systemd-resolved service + raw: systemctl restart systemd-resolved + become: true + environment: {} + when: + - '"bionic" in os_release.stdout' + - name: Install python raw: apt-get update && \