-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Linux] Skip vmtoolsd and vgauthd status checking when they are uphel…
…d in Flatcar (#548) Signed-off-by: Qi Zhang <[email protected]>
- Loading branch information
1 parent
061857d
commit 4af684e
Showing
5 changed files
with
117 additions
and
34 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
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
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,27 @@ | ||
# Copyright 2024 VMware, Inc. | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
--- | ||
# Get systemd unit properties | ||
# Parameter: | ||
# guest_systemd_unit: the systemd unit name | ||
# Return: | ||
# guest_systemd_unit_properties: systemd unit properties | ||
# | ||
- name: "Initialize the fact of systemd unit's properties" | ||
ansible.builtin.set_fact: | ||
guest_systemd_unit_properties: {} | ||
|
||
- name: "Get properties of systemd unit '{{ guest_systemd_unit }}'" | ||
ansible.builtin.shell: "systemctl show {{ guest_systemd_unit }}" | ||
ignore_errors: true | ||
delegate_to: "{{ vm_guest_ip }}" | ||
register: systemctl_show_result | ||
|
||
- name: "Set fact of systemd unit's properties" | ||
ansible.builtin.set_fact: | ||
guest_systemd_unit_properties: "{{ systemctl_show_result.stdout | replace('=', ': ') | from_yaml }}" | ||
when: | ||
- systemctl_show_result.failed is defined | ||
- not systemctl_show_result.failed | ||
- systemctl_show_result.stdout is defined | ||
- systemctl_show_result.stdout |
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