make it a role

This commit is contained in:
root
2021-08-26 03:13:18 +00:00
commit 390d6042ab
14 changed files with 487 additions and 0 deletions

25
tasks/nebula.yml Normal file
View File

@@ -0,0 +1,25 @@
- name: Ensure /opt/nebula directory exists
file:
path: /opt/nebula
state: directory
mode: '0700'
owner: root
group: root
# TODO: Detect cpu arch correctly
- name: Download & Extract Nebula
unarchive:
src: "https://github.com/slackhq/nebula/releases/download/v{{ nebula_version }}/nebula-linux-{{ cpu_arch | default('amd64') }}.tar.gz"
dest: "/opt/nebula"
remote_src: yes
creates: '/opt/nebula/nebula'
- name: Ensure Nebula binaries permissions are correct
file:
path: "/opt/nebula/{{ item }}"
owner: root
group: root
mode: '0700'
with_items:
- nebula
- nebula-cert