1
0
forked from finallycoffee/base

feat(mosh): add ansible role

This commit is contained in:
2025-04-27 17:36:49 +02:00
parent 115cfa8236
commit 762e2ffc27
7 changed files with 72 additions and 0 deletions

11
roles/mosh/tasks/main.yml Normal file
View File

@ -0,0 +1,11 @@
---
- name: Ensure 'mosh_state' is valid
ansible.builtin.fail:
msg: >-2
Invalid state '{{ mosh_state }}' for 'mosh_state'!
Allowed states are {{ mosh_states | join(', ') }}.
when: mosh_state not in mosh_states
- name: Ensure mosh is {{ mosh_state }}
ansible.builtin.include_tasks:
file: "install.yml"