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 name: nebula
# The version of the collection. Must be compatible with semantic versioning # 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 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md readme: README.md

View File

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

View File

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