Skip to content

Commit

Permalink
Using udev rules to make sure that nmcli configured VM's retain their…
Browse files Browse the repository at this point in the history
… NIC order after reboot
  • Loading branch information
AllRWeak authored and Lauri-L committed Nov 6, 2024
1 parent ba4cf21 commit 791c0de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nova/core/galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: nova
name: core
version: 3.10.2
version: 3.10.4
readme: README.md
authors:
- https://github.com/novateams
Expand Down
5 changes: 3 additions & 2 deletions nova/core/roles/configure_networking/tasks/vsphere/nmcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
become: false
delegate_to: localhost
block:
- name: Templating udev configuration...
- name: Templating nmcli configuration files...
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
Expand All @@ -17,7 +17,7 @@
- src: nmcli.sh
dest: /tmp/{{ project_fullname | default('') }}_{{ inventory_hostname }}_nmcli.sh

- name: Getting file info...
- name: Getting configuration files' info...
ansible.builtin.stat:
path: "{{ item }}"
register: file_size
Expand Down Expand Up @@ -105,6 +105,7 @@
- name: Including command run check task...
ansible.builtin.include_tasks: command_run_check.yml

# Reboot is required for udev rules to take effect
- name: Restarting {{ custom_vm_name | default(vm_name) }}...
vmware.vmware_rest.vcenter_vm_guest_power:
state: reboot
Expand Down

0 comments on commit 791c0de

Please sign in to comment.