Compare commits

...

1 Commits
1.0.2 ... main

Author SHA1 Message Date
96ae22adab
Add option to forcefully download nebula and install to /opt 2025-05-14 14:40:50 +00:00
3 changed files with 13 additions and 3 deletions

View File

@ -8,7 +8,7 @@ namespace: norohind
name: nebula
# The version of the collection. Must be compatible with semantic versioning
version: 1.0.2
version: 1.1.0
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md

View File

@ -19,6 +19,8 @@ nebula_service_name_default: nebula
service_name_mapping:
- Debian: "nebula@config"
force_download: false
duration:
nebula_groups:

View File

@ -14,11 +14,19 @@
nebula_addr: "{{ nebula_addr + '/' + nebula_subnet }}"
- name: Set nebula service name
when: not force_download
tags:
- installation
set_fact:
nebula_service_name: "{{ service_name_mapping[ansible_distribution] | default(nebula_service_name_default) }}"
- name: Set nebula service name
when: force_download
tags:
- installation
set_fact:
nebula_service_name: "{{ nebula_service_name_default }}"
- name: Create nebula config directory
tags:
- sign
@ -31,7 +39,7 @@
mode: "0755"
- name: Install nebula
when: ansible_distribution != "Ubuntu"
when: ansible_distribution != "Ubuntu" and not force_download
tags:
- installation
ansible.builtin.package:
@ -39,7 +47,7 @@
state: present
- name: Install nebula from GitHub
when: ansible_distribution == "Ubuntu"
when: ansible_distribution == "Ubuntu" or force_download
tags:
- installation
ansible.builtin.import_tasks: download-nebula.yaml