summaryrefslogtreecommitdiff
path: root/roles/install-guest-agent-wrapper
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2020-04-23 20:54:29 +0300
committerzsdc <taras@vyos.io>2020-04-23 21:06:35 +0300
commit6f037298fc0c48f2ffb4ba0780f1cfdbb1fa4acf (patch)
tree21b2dbe849d325099fd2e32418b56b7ddad23edc /roles/install-guest-agent-wrapper
parent6d85fa21b8dee034713770c21a1e2b11bc39fc51 (diff)
downloadvyos-vm-images-6f037298fc0c48f2ffb4ba0780f1cfdbb1fa4acf.tar.gz
vyos-vm-images-6f037298fc0c48f2ffb4ba0780f1cfdbb1fa4acf.zip
Added option to install guest agents
Supported agents: - open-vm-tools (`vmware` option) - qemu-guest-agent (`qemu` option)
Diffstat (limited to 'roles/install-guest-agent-wrapper')
-rw-r--r--roles/install-guest-agent-wrapper/tasks/main.yml4
-rw-r--r--roles/install-guest-agent-wrapper/tests/inventory2
-rw-r--r--roles/install-guest-agent-wrapper/tests/test.yml4
3 files changed, 10 insertions, 0 deletions
diff --git a/roles/install-guest-agent-wrapper/tasks/main.yml b/roles/install-guest-agent-wrapper/tasks/main.yml
new file mode 100644
index 0000000..f41e111
--- /dev/null
+++ b/roles/install-guest-agent-wrapper/tasks/main.yml
@@ -0,0 +1,4 @@
+- name: Check if we need to install VM guest agents
+ include_role:
+ name: install-guest-agent
+ when: guest_agent is defined
diff --git a/roles/install-guest-agent-wrapper/tests/inventory b/roles/install-guest-agent-wrapper/tests/inventory
new file mode 100644
index 0000000..878877b
--- /dev/null
+++ b/roles/install-guest-agent-wrapper/tests/inventory
@@ -0,0 +1,2 @@
+localhost
+
diff --git a/roles/install-guest-agent-wrapper/tests/test.yml b/roles/install-guest-agent-wrapper/tests/test.yml
new file mode 100644
index 0000000..1c75a3b
--- /dev/null
+++ b/roles/install-guest-agent-wrapper/tests/test.yml
@@ -0,0 +1,4 @@
+---
+- hosts: localhost
+ roles:
+ - install-guest-agent-wrapper