You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
625 B
28 lines
625 B
4 years ago
|
---
|
||
|
|
||
|
- when: crowdsec_install_mode != 'none'
|
||
|
block:
|
||
|
- name: Download crowdsec
|
||
|
get_url:
|
||
|
url: "{{ crowdsec_archive_url }}"
|
||
|
dest: /tmp/
|
||
|
checksum: sha1:{{ crowdsec_archive_sha1 }}
|
||
|
|
||
|
- name: Extract crowdsec
|
||
|
unarchive:
|
||
|
src: /tmp/crowdsec-release.tgz
|
||
|
dest: /tmp/
|
||
|
remote_src: True
|
||
|
|
||
|
- name: Install or upgrade crowdsec
|
||
|
command: ./wizard.sh --bin{{ crowdsec_install_mode }}
|
||
|
args:
|
||
|
chdir: /tmp/crowdsec-v{{ crowdsec_version }}/
|
||
|
notify: restart crowdsec
|
||
|
|
||
|
- name: Update crowdsec hub
|
||
|
command: cscli hub update
|
||
|
|
||
|
tags: crowdsec
|
||
|
|