Add ansible provisioning (#122)
* first ansible skeleton * first commit of ansible installation of vulnwhisperer outside docker * first ansible skeleton * first commit of ansible installation of vulnwhisperer outside docker * refactor the ansible role a bit * update readme, add fail validation step to provision.yml and fix typo when calling a logging funciton
This commit is contained in:

committed by
Quim Montal

parent
a8671a7303
commit
3a09f60543
14
ansible/roles/elastic.elasticsearch/handlers/main.yml
Normal file
14
ansible/roles/elastic.elasticsearch/handlers/main.yml
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
- name: reload systemd configuration
|
||||
become: yes
|
||||
command: systemctl daemon-reload
|
||||
|
||||
# Restart service and ensure it is enabled
|
||||
|
||||
- name: restart elasticsearch
|
||||
become: yes
|
||||
service: name={{instance_init_script | basename}} state=restarted enabled=yes
|
||||
when:
|
||||
- es_restart_on_change
|
||||
- es_start_service
|
||||
register: es_restarted
|
Reference in New Issue
Block a user