File tree Expand file tree Collapse file tree 1 file changed +33
-16
lines changed
Expand file tree Collapse file tree 1 file changed +33
-16
lines changed Original file line number Diff line number Diff line change 1- tasks:
2- - name: Download and import ZeroTier pgp key
3- apt_key:
4- url: "https://download.zerotier.com/
[email protected] "
5- become: yes
1+ ---
2+ - name: Install Zerotier
3+ hosts: localhost
4+ #gather_facts: no
5+ become: true
6+ environment:
7+ INSTALL_KEY: 379CE192D401AB61
8+
9+ pre_tasks:
10+ - name: Install python for Ansible to work.
11+ raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
12+ changed_when: false
13+
14+ tasks:
15+ - name: apt update
16+ apt:
17+ update_cache: yes
18+
19+ - name: Download and import ZeroTier pgp key
20+ apt_key:
21+ url: "https://download.zerotier.com/
[email protected] "
22+ become: yes
623
7- - name: Add ZeroTier APT repo
8- apt_repository:
9- repo: deb http://download.zerotier.com/debian/{{ ansible_distribution_release }} {{ ansible_distribution_release }} main
10- filename: zerotier
11- register: zerotier_repo
24+ - name: Add ZeroTier APT repo
25+ apt_repository:
26+ repo: deb http://download.zerotier.com/debian/{{ ansible_distribution_release }} {{ ansible_distribution_release }} main
27+ filename: zerotier
28+ register: zerotier_repo
1229
13- - name: Update APT cache and Install ZeroTier from APT
14- apt:
15- name: zerotier-one
16- update_cache: yes
17- autoclean: yes
18- autoremove: yes
30+ - name: Update APT cache and Install ZeroTier from APT
31+ apt:
32+ name: zerotier-one
33+ update_cache: yes
34+ autoclean: yes
35+ autoremove: yes
You can’t perform that action at this time.
0 commit comments