mirror of
https://github.com/norohind/nebula-ansible.git
synced 2025-08-12 18:51:08 +03:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
96ae22adab |
@ -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
|
||||
|
@ -19,6 +19,8 @@ nebula_service_name_default: nebula
|
||||
service_name_mapping:
|
||||
- Debian: "nebula@config"
|
||||
|
||||
force_download: false
|
||||
|
||||
duration:
|
||||
nebula_groups:
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user