ansible-role-zerotier/tasks/install.yml

31 lines
613 B
YAML
Raw Normal View History

---
2018-01-29 15:11:08 +00:00
- include_tasks: install/{{ ansible_facts['os_family'] }}.yml
tags:
- installation
- repositories
- block: #Install and enable zerotier-one
- name: Install zerotier-one
package:
name: zerotier-one
state: present
update_cache: yes
register: zerotier_client
2017-07-26 22:34:10 +00:00
- name: Start zerotier-one service
service:
name: zerotier-one
state: started
when:
- zerotier_client is succeeded
notify:
- enable zerotier-one
when:
2018-07-25 14:53:12 +00:00
- zerotier_repo is not defined or zerotier_repo is succeeded
2017-12-17 04:49:36 +00:00
- not ansible_check_mode
tags:
- installation
- packages