-
-
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.
feat: add QEMU interpreter path and update README
- Added `.vscode/settings.json` file with `ansible.python.interpreterPath` set to `/bin/python3`. - Updated the `README.md` file to provide more information about QEMU and the `qemu-guest-agent`. The changes in this commit improve the configuration of the project and enhance the documentation.
- Loading branch information
Showing
3 changed files
with
15 additions
and
10 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,3 @@ | ||
{ | ||
"ansible.python.interpreterPath": "/bin/python3" | ||
} |
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
--- | ||
# tasks for qemu-guest-agent | ||
|
||
- name: "Gather facts" | ||
when: ansible_facts['ansible_os_family'] is not defined or ansible_facts['ansible_system_vendor'] is not defined | ||
ansible.builtin.setup: | ||
when: ansible_facts|default({}) == {} | ||
|
||
- name: "Update apt cache (Debian Family)" | ||
when: ansible_os_family == "Debian" | ||
ansible.builtin.apt: | ||
update_cache: true | ||
cache_valid_time: 3600 | ||
when: ansible_os_family == "Debian" | ||
|
||
- name: "Install qemu_guest_agent" | ||
when: ansible_system_vendor == 'QEMU' | ||
- name: "Ensure qemu_guest_agent is installed" | ||
ansible.builtin.package: | ||
name: qemu-guest-agent | ||
state: present | ||
when: ansible_system_vendor == 'QEMU' |