1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/remoteit/tasks/enable-or-disable.yml

17 lines
316 B
YAML
Raw Normal View History

2021-10-25 18:59:16 +00:00
2021-10-27 21:44:31 +00:00
- name: Enable & (Re)Start connectd daemon which calls home
2021-10-25 18:59:16 +00:00
systemd:
2021-10-27 21:44:31 +00:00
name: connectd
2021-10-25 18:59:16 +00:00
daemon_reload: yes
enabled: yes
2021-10-27 21:44:31 +00:00
state: restarted
when: remoteid_enabled
2021-10-25 18:59:16 +00:00
2021-10-27 21:44:31 +00:00
- name: Disable & Stop connectd daemon
2021-10-25 18:59:16 +00:00
systemd:
2021-10-27 21:44:31 +00:00
name: connectd
2021-10-25 18:59:16 +00:00
enabled: no
state: stopped
2021-10-27 21:44:31 +00:00
when: not remoteit_enabled
2021-10-25 18:59:16 +00:00