From cf86a8d61ed75cc0ed6ffb1f9c425d8d91f827fa Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Fri, 26 Apr 2019 16:33:07 -0400 Subject: [PATCH] tripleo-bootstrap: only enable network, not starting. Starting the service can fail is the script was run before. The task is really to enable the network after a reboot, so let's just make sure we enable the service, and not need to start it. Change-Id: Ib8fb5e9154091f80a08c272df014bea25c39c475 --- roles/tripleo-bootstrap/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/tripleo-bootstrap/tasks/main.yml b/roles/tripleo-bootstrap/tasks/main.yml index 5be379ce1..ddfe21769 100644 --- a/roles/tripleo-bootstrap/tasks/main.yml +++ b/roles/tripleo-bootstrap/tasks/main.yml @@ -24,10 +24,11 @@ # at boot, as it'll take care of restarting the network interfaces managed by # OVS. Note that OVS unit service is already configure to start before # network.service. +# Note that we don't try to start the service since this is a one shot script +# which can fail if someone tries to starts it a second time. # See https://bugzilla.redhat.com/show_bug.cgi?id=1701866 for context. -- name: Ensure network service is enabled and started +- name: Ensure network service is enabled service: name: network enabled: yes - state: started become: true