forked from redhat-partner-solutions/crucible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dns check for ipv6 and network connection check for nmstate (redh…
…at-partner-solutions#230) * Allow IPv6 vips in dns check * Fix network config roll back when vm_host and bastion are the same --------- Co-authored-by: Michele Costa <[email protected]>
- Loading branch information
1 parent
751b443
commit 076f0e5
Showing
4 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vm_host_is_bastion: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: Get bastion machine id | ||
ansible.builtin.slurp: | ||
src: /etc/machine-id | ||
register: bastion_machine_id | ||
delegate_to: bastion | ||
become: false | ||
|
||
- name: Get vm_host machine id | ||
ansible.builtin.slurp: | ||
src: /etc/machine-id | ||
register: vmhost_machine_id | ||
|
||
- name: Check if VM Host is bridge | ||
ansible.builtin.set_fact: | ||
vm_host_is_bastion: "{{ (bastion_machine_id.content == vmhost_machine_id.content) | bool }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters