mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 19:07:54 +01:00
add test for flatpaks installed
This commit is contained in:
parent
3dc05c0efc
commit
9277acf58a
3 changed files with 65 additions and 13 deletions
25
tests/vm/flatpak_installed.yml
Normal file
25
tests/vm/flatpak_installed.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env -S ansible-playbook -i ./ansible_inventory
|
||||
---
|
||||
- name: Test for installed flatpaks
|
||||
hosts: vm
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
# Verifies that the flatpaks are installed
|
||||
- name: Get list of installed Flatpaks
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/bin/flatpak list
|
||||
register: flatpaks
|
||||
|
||||
- name: Check that VLC is installed
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'VLC' in flatpaks.stdout"
|
||||
fail_msg: 'VLC is not installed'
|
||||
|
||||
- name: Check that VLC is installed
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'Firefox' in flatpaks.stdout"
|
||||
fail_msg: 'Firefox is not installed'
|
||||
Loading…
Add table
Add a link
Reference in a new issue