Merge "bootstrap: install network-scripts if EL8"
This commit is contained in:
commit
2c3f7533f6
@ -27,8 +27,16 @@
|
|||||||
# Note that we don't try to start the service since this is a one shot script
|
# 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.
|
# which can fail if someone tries to starts it a second time.
|
||||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=1701866 for context.
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1701866 for context.
|
||||||
- name: Ensure network service is enabled
|
- name: Deploy and enable network service
|
||||||
service:
|
when: ansible_distribution_major_version == '8'
|
||||||
name: network
|
block:
|
||||||
enabled: yes
|
- name: Deploy network-scripts required for deprecated network service
|
||||||
become: true
|
package:
|
||||||
|
name: network-scripts
|
||||||
|
become: true
|
||||||
|
ignore_errors: true
|
||||||
|
- name: Ensure network service is enabled
|
||||||
|
service:
|
||||||
|
name: network
|
||||||
|
enabled: yes
|
||||||
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user