tf-ansible-workflow

Terraform/Ansible Workflow for Libvirt
git clone https://git.in0rdr.ch/tf-ansible-workflow.git
Log | Files | Refs | Pull requests |Archive

commit b0c1da9ca03cde90e3eb0d067585a0479041d743
parent 87b5ea29c74d89900a148c405fa8093ad8b07c23
Author: Andreas Gruhler <andreas.gruhler@adfinis-sygroup.ch>
Date:   Thu, 26 Dec 2019 21:56:40 +0100

NetworkManager restart

Diffstat:
Mansible/playbook.yml | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/ansible/playbook.yml b/ansible/playbook.yml @@ -45,6 +45,15 @@ name: network state: restarted when: hostname_update.changed + ignore_errors: yes + become: yes + + - name: restart NetworkManager to register hostname with dns server + service: + name: NetworkManager + state: restarted + when: hostname_update.changed + ignore_errors: yes become: yes - name: set ssh private key