Add async to the networkd start task

The async function was added to the restart handler but not the start
task. This change adds the missing async which will ensure we're not
hung on transient networkd starts.

Change-Id: I81a9e578875a43f7581abec0a3bf0c4067ab4d41
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-08-18 17:36:50 -05:00
parent a04e0b6989
commit 9f6857f602
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
2 changed files with 9 additions and 5 deletions

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Restart systemd-networkd
- name: Restart networkd
systemd:
name: "systemd-networkd"
state: restarted
@ -22,9 +22,15 @@
poll: 0
when:
- systemd_run_networkd | bool
listen: Restart systemd-networkd
tags:
- systemd-networkd
- name: (RE)Gather facts post setup
setup:
gather_subset: "network"
listen: Restart systemd-networkd
- name: Restart systemd-resolved
systemd:
name: "systemd-resolved"

View File

@ -130,11 +130,9 @@
name: "systemd-networkd"
enabled: "yes"
state: started
async: 45
poll: 0
when:
- systemd_run_networkd | bool
tags:
- systemd-networkd
- name: (RE)Gather facts post setup
setup:
gather_subset: "network"