mirror of
https://github.com/norohind/nebula-ansible.git
synced 2025-08-14 19:01:09 +03:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
96ae22adab |
@ -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
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user