Fix somes lint errors
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
18e86f8687
commit
d4e8f60fe9
3 changed files with 5 additions and 4 deletions
|
|
@ -1,11 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Check if agent is already registered
|
- name: Check if agent is already registered
|
||||||
ansible.builtin.shell: cscli machines list -o raw | grep {{ inventory_hostname }} | grep true || echo "Not found"
|
ansible.builtin.shell: set -o pipefail && cscli machines list -o raw | grep {{ inventory_hostname }} | grep true || echo "Not found"
|
||||||
register: _csmachines
|
register: _csmachines
|
||||||
delegate_to: "{{ crowdsec_delegate_server_hostname }}"
|
delegate_to: "{{ crowdsec_delegate_server_hostname }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- block:
|
- name: registering
|
||||||
|
block:
|
||||||
- name: Register agent to server
|
- name: Register agent to server
|
||||||
ansible.builtin.command: cscli lapi register -u {{ crowdsec_lapi_url }} --machine {{ inventory_hostname }}
|
ansible.builtin.command: cscli lapi register -u {{ crowdsec_lapi_url }} --machine {{ inventory_hostname }}
|
||||||
notify: restart crowdsec
|
notify: restart crowdsec
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue