mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
16 lines
No EOL
524 B
YAML
16 lines
No EOL
524 B
YAML
#!/usr/bin/env -S ansible-playbook -i ./ansible_inventory
|
|
---
|
|
- name: Test fedora flatpak repo wasn't enabled
|
|
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'
|
|
fail_msg: 'flatpak-add-fedora-repos.service is not disabled' |