Ensure "network" service is enabled

It may happen this service isn't enabled (especially on newer
Centos/RHEL releases), leading in network misconfigurations.

Ensuring it's actually enabled allows br-ctlplane to get configured upon
reboot.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1774581
Change-Id: I4a56d837e08498bc4d25d25c7203bfd7d012974e
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
This commit is contained in:
Cédric Jeanneret 2019-11-22 11:12:58 +01:00 committed by Alex Schultz
parent b0a75f1db0
commit 804dd0f341
1 changed files with 10 additions and 0 deletions

View File

@ -593,6 +593,16 @@ outputs:
- name: NetworkConfig
block:
# os-net-config currently relies on the legacy network
# so we need to ensure it's enabled on boot. This should
# be removed when we switch to NetworkManager or replaced
# with something that ensures NetworkManager is enabled.
- name: Ensure network service is enabled
systemd:
name: network
enabled: yes
state: started
- name: Create /var/lib/tripleo-config/scripts directory
file:
path: /var/lib/tripleo-config/scripts