Install nginx from package manager if available
This commit is contained in:
parent
bd15946f3b
commit
593a945c5c
1 changed files with 21 additions and 13 deletions
|
@ -5,14 +5,29 @@
|
|||
mode: "0700"
|
||||
become: true
|
||||
|
||||
- name: Install nebula
|
||||
package:
|
||||
name: nebula
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
become: true
|
||||
|
||||
- name: Manually install nebula
|
||||
block:
|
||||
- name: Install binaries
|
||||
unarchive:
|
||||
src: https://github.com/slackhq/nebula/releases/download/v{{ nebula_version }}/nebula-linux-amd64.tar.gz
|
||||
dest: /usr/bin
|
||||
remote_src: true
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Install service
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/slackhq/nebula/v{{ nebula_version }}/dist/arch/nebula.service
|
||||
dest: /usr/lib/systemd/system/nebula.service
|
||||
mode: "0644"
|
||||
when: ansible_os_family != 'Archlinux'
|
||||
notify: restart nebula
|
||||
become: true
|
||||
|
||||
- name: Install config
|
||||
template:
|
||||
|
@ -41,13 +56,6 @@
|
|||
become: true
|
||||
notify: restart nebula
|
||||
|
||||
- name: Install service
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/slackhq/nebula/v{{ nebula_version }}/dist/arch/nebula.service
|
||||
dest: /usr/lib/systemd/system/nebula.service
|
||||
mode: "0644"
|
||||
become: true
|
||||
|
||||
- name: Enable service
|
||||
service:
|
||||
name: nebula
|
||||
|
|
Loading…
Reference in a new issue