add rclone_yandex role

This commit is contained in:
Sergey Malyuk
2025-12-16 14:05:16 +03:00
parent b94dd89c56
commit 18fb8ad52a
23 changed files with 335 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
---
- name: Verify
hosts: all
gather_facts: false
any_errors_fatal: true
become: true
tasks:
- name: "Gather facts about the service"
ansible.builtin.service_facts:
- name: "Check if the `rclone-yandex` service is running"
ansible.builtin.assert:
that:
- "'rclone-yandex.service' in ansible_facts.services"
- "ansible_facts.services['rclone-yandex.service'].state == 'running'"
fail_msg: "the 'rclone-yandex' service is not running!"
success_msg: "the 'rclone-yandex' service is up and running"