MeshMage/Ansible/roles/meshmage-node/tasks/main.yml

58 lines
1.2 KiB
YAML
Raw Normal View History

2021-06-09 03:57:10 +08:00
---
- name: Install nebula binary
copy:
dest: /usr/local/sbin/nebula
src: "{{ role_path }}/files/nebula"
owner: root
group: root
mode: 0755
- name: Create Nebula Configuration Directory
file:
state: directory
path: /etc/nebula
owner: root
group: root
mode: 0755
- name: Install Nebula CA
copy:
dest: /etc/nebula/ca.crt
src: "{{ meshnet_store }}/{{ network_id }}/ca.crt"
owner: root
group: root
mode: 0644
- name: Install Nebula Domain Cert
copy:
dest: "/etc/nebula/{{ domain }}.crt"
src: "{{ meshnet_store }}/{{ network_id }}/{{ domain }}.crt"
owner: root
group: root
mode: 0644
- name: Install Nebula Domain Key
copy:
dest: "/etc/nebula/{{ domain }}.key"
src: "{{ meshnet_store }}/{{ network_id }}/{{ domain }}.key"
owner: root
group: root
mode: 0644
- name: Install Nebula Configuration File
2021-06-14 08:58:33 +08:00
copy:
2021-06-09 03:57:10 +08:00
dest: /etc/nebula/config.yml
2021-06-14 08:58:33 +08:00
src: "{{ role_path }}/files/{{ domain }}.yml"
2021-06-09 03:57:10 +08:00
owner: root
group: root
mode: 0644
- name: Install Nebula Service File
copy:
dest: /etc/systemd/system/nebula.service
src: "{{ role_path }}/files/nebula.service"
owner: root
group: root
mode: 0644