mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
25 lines
689 B
YAML
25 lines
689 B
YAML
- name: Enable & (Re)Start remote.it's connectd daemon which calls home
|
|
systemd:
|
|
name: connectd
|
|
daemon_reload: yes
|
|
enabled: yes
|
|
state: restarted
|
|
when: remoteit_enabled
|
|
|
|
- name: Find the uuid for the connector
|
|
shell: ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit
|
|
register: remoteit_service
|
|
|
|
- name: Stop the uuid {{ remoteit_service.stdout }}
|
|
systemd:
|
|
name: "{{ remoteit_service.stdout }}"
|
|
enabled: no
|
|
state: stopped
|
|
when: not remoteit_enabled and not remoteit_service.stdout == ""
|
|
|
|
- name: Disable & Stop remote.it's connectd daemon
|
|
systemd:
|
|
name: connectd
|
|
enabled: no
|
|
state: stopped
|
|
when: not remoteit_enabled
|