Skip to content

Commit

Permalink
networkd configuration method: ensure that NetworkManager is masked
Browse files Browse the repository at this point in the history
  • Loading branch information
bl0way authored and AllRWeak committed Aug 19, 2024
1 parent 8f0c773 commit 7da3784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nova/core/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: nova
name: core

# The version of the collection. Must be compatible with semantic versioning
version: 3.1.17
version: 3.1.18

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- name: Cleaning up Debian...
when: configure_networking_os is search('Debian')
block:
- name: Disabling networking service on Debian...
- name: Masking NetworkManager service and cleaning previous networkd configuration on Debian...
ansible.builtin.uri:
url: https://{{ vmware_defaults.hostname }}/api/vcenter/vm/{{ created_vm_info.value[0].vm | default(vcenter_vm_info.value[0].vm) }}/guest/processes?action=create
method: POST
Expand All @@ -20,7 +20,10 @@
body:
credentials: "{{ rest_api_credentials }}"
spec:
arguments: -c "rm -f /etc/systemd/network/* && systemctl disable networking"
arguments: >
-c "rm -f /etc/systemd/network/* &&
systemctl stop NetworkManager &&
systemctl mask NetworkManager"
path: /bin/bash
status_code: 201
body_format: json
Expand Down

0 comments on commit 7da3784

Please sign in to comment.