tinyblargon.systemd
Rola Ansible: systemd
Rola do konfigurowania usługi/timer'a systemd z lokalnego pliku.
Wymagania
N/A
Zmienne roli
Domyślne
Nazwa zmiennej | Wymagana | Opis | Wartość domyślna | Typ |
---|---|---|---|---|
systemd_file | nie | Ścieżka do lokalnego pliku usługi/timer'a, który ma być skopiowany | "" | ciąg tekstowy |
systemd_name | tak | Nazwa tworzonych usług/timer'a systemd | "" | ciąg tekstowy |
systemd_enable | nie | Czy usługa/timer ma być włączony czy wyłączony | true | bool |
systemd_state | nie | Stan usługi/timer'a systemd, może być jednym z started , stopped , restarted , absent . Gdy absent , usługa/timer zostanie zatrzymany, wyłączony i usunięty. |
"started" | ciąg tekstowy |
systemd_type | nie | Czy systemd ma to utworzyć jako service czy timer |
"service" | ciąg tekstowy |
Zależności
N/A
Przykładowy playbook
- hosts: all
roles:
- role: tinyblargon.systemd
vars:
systemd_file: "path/to/test.service"
systemd_name: "testing-service"
systemd_enable: false
systemd_state: "started"
systemd_type: "service"
Licencja
MIT
Zainstaluj
ansible-galaxy install tinyblargon.systemd
Licencja
mit
Pobrania
170
Właściciel
If the DevOps tooling doesn't exist, I'll write it myself.