summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-09-22 15:03:04 +0200
committerManuel Bentele2021-09-22 15:03:04 +0200
commita51f093a704201d734b76465302cc1b4d303a388 (patch)
tree11a37e8ee051b8f344ec6a7bc8c40bdb87c1333b
parentsetup-bwlp.yml: move virt-* roles to core tag (diff)
downloadansible-bwlp-a51f093a704201d734b76465302cc1b4d303a388.tar.gz
ansible-bwlp-a51f093a704201d734b76465302cc1b4d303a388.tar.xz
ansible-bwlp-a51f093a704201d734b76465302cc1b4d303a388.zip
[looking-glass-client] Move looking glass client into mltk as own module
-rw-r--r--looking-glass-client/defaults/main.yml5
-rw-r--r--looking-glass-client/tasks/main.yml29
-rw-r--r--setup-bwlp.yml1
3 files changed, 0 insertions, 35 deletions
diff --git a/looking-glass-client/defaults/main.yml b/looking-glass-client/defaults/main.yml
deleted file mode 100644
index 16704cf..0000000
--- a/looking-glass-client/defaults/main.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-looking_glass_client_packages:
- - looking-glass-client
-looking_glass_client_package_name:
- looking-glass-client
diff --git a/looking-glass-client/tasks/main.yml b/looking-glass-client/tasks/main.yml
deleted file mode 100644
index 0b76104..0000000
--- a/looking-glass-client/tasks/main.yml
+++ /dev/null
@@ -1,29 +0,0 @@
----
-- name: looking-glass-client | Install packages for looking-glass-client
- apt:
- name: "{{ looking_glass_client_packages }}"
- state: present
- install_recommends: no
-
-- name: looking-glass-client | Gather the apt package facts
- package_facts:
- manager: apt
-
-- name: looking-glass-client | Get version information from package facts
- set_fact:
- looking_glass_client:
- versions: "{{ ansible_facts.packages[looking_glass_client_package_name | string] |
- map(attribute='version') |
- list }}"
- cacheable: yes
- when: "(looking_glass_client_package_name | string) in ansible_facts.packages"
-
-- name: looking-glass-client | Print notice to install suitable looking-glass-host version in VM
- debug:
- msg: "Please install the looking-glass-host in version {{ looking_glass_client.versions[0] }} in the VM!"
- when: "looking_glass_client.versions is defined and (looking_glass_client.versions | length) == 1"
-
-- name: looking-glass-client | Print error message if installation was not successful
- fail:
- msg: "The looking-glass-client is not installed properly"
- when: "looking_glass_client.versions is not defined or (looking_glass_client.versions | length) != 1"
diff --git a/setup-bwlp.yml b/setup-bwlp.yml
index caff5a0..fde327c 100644
--- a/setup-bwlp.yml
+++ b/setup-bwlp.yml
@@ -18,7 +18,6 @@
- { role: tools-base, tags: core }
- { role: virt-viewer, tags: core }
- { role: virt-manager, tags: core }
- - { role: looking-glass-client, tags: core }
- { role: desktop-kde-plasma, tags: extended }
- { role: desktop-i3, tags: extended }
- { role: desktop-ubuntu, tags: extended }