mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 19:07:54 +01:00
check service
This commit is contained in:
parent
76f0b24d2a
commit
5cc2f5cc2d
1 changed files with 15 additions and 0 deletions
15
tests/vm/flatpak_fedora_repo_disabled.yml
Normal file
15
tests/vm/flatpak_fedora_repo_disabled.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env -S ansible-playbook -i ./ansible_inventory
|
||||||
|
---
|
||||||
|
- name: Test for installed flatpaks
|
||||||
|
hosts: vm
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Collect facts about system services
|
||||||
|
service_facts:
|
||||||
|
register: services_state
|
||||||
|
|
||||||
|
- name: Check that flatpak-add-fedora-repos is disabled
|
||||||
|
ansible.builtin.assert:
|
||||||
|
that:
|
||||||
|
- services_state['ansible_facts']['services']['flatpak-add-fedora-repos.service']['status'] == 'disabled'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue