|
|
@ -31,7 +31,7 @@ |
|
|
|
register: cs_lapi_credentials |
|
|
|
register: cs_lapi_credentials |
|
|
|
delegate_to: "{{ cs_lapi_server }}" |
|
|
|
delegate_to: "{{ cs_lapi_server }}" |
|
|
|
- set_fact: cs_lapi_credentials_yaml={{ cs_lapi_credentials.stdout | from_yaml }} |
|
|
|
- set_fact: cs_lapi_credentials_yaml={{ cs_lapi_credentials.stdout | from_yaml }} |
|
|
|
- copy: content={{ cs_lapi_credentials_yaml.password }} dest=/etc/crowdsec/meta/lapi_pass mode=600 |
|
|
|
- copy: content={{ cs_lapi_credentials_yaml.password }} dest={{ cs_root_dir }}/meta/lapi_pass mode=600 |
|
|
|
- set_fact: cs_lapi_pass={{ cs_lapi_credentials_yaml.password }} |
|
|
|
- set_fact: cs_lapi_pass={{ cs_lapi_credentials_yaml.password }} |
|
|
|
tags: cs |
|
|
|
tags: cs |
|
|
|
|
|
|
|
|
|
|
@ -44,8 +44,8 @@ |
|
|
|
command: cscli capi register -o raw -f /dev/stdout |
|
|
|
command: cscli capi register -o raw -f /dev/stdout |
|
|
|
register: cs_capi_credentials |
|
|
|
register: cs_capi_credentials |
|
|
|
- set_fact: cs_capi_credentials_yaml={{ cs_capi_credentials.stdout | from_yaml }} |
|
|
|
- set_fact: cs_capi_credentials_yaml={{ cs_capi_credentials.stdout | from_yaml }} |
|
|
|
- copy: content={{ cs_capi_credentials_yaml.login }} dest=/etc/crowdsec/meta/capi_user mode=600 |
|
|
|
- copy: content={{ cs_capi_credentials_yaml.login }} dest={{ cs_root_dir }}/meta/capi_user mode=600 |
|
|
|
- copy: content={{ cs_capi_credentials_yaml.password }} dest=/etc/crowdsec/meta/capi_pass mode=600 |
|
|
|
- copy: content={{ cs_capi_credentials_yaml.password }} dest={{ cs_root_dir }}/meta/capi_pass mode=600 |
|
|
|
- set_fact: cs_capi_user={{ cs_capi_credentials_yaml.login }} |
|
|
|
- set_fact: cs_capi_user={{ cs_capi_credentials_yaml.login }} |
|
|
|
- set_fact: cs_capi_pass={{ cs_capi_credentials_yaml.password }} |
|
|
|
- set_fact: cs_capi_pass={{ cs_capi_credentials_yaml.password }} |
|
|
|
tags: cs |
|
|
|
tags: cs |
|
|
|