cfssl-client-role/roles/tasks/pre_requisite.yml
Arnaud GRESSE cd0ea94173 add role
2022-12-16 18:02:08 +01:00

22 lines
No EOL
818 B
YAML

---
- name: Check if cfssl is already available
stat:
path: '{{cfssl_bin_directory}}/cfssl'
register: cfssl_exist
- name: Download statically linked cfssl binary
get_url:
url: https://github.com/cloudflare/cfssl/releases/download/v{{cfssl_version}}/cfssl_{{cfssl_version}}_linux_amd64
dest: '{{cfssl_bin_directory}}/cfssl'
mode: 0755
when: cfssl_exist.stat.exists == false
- name: Check if cfssljson is already available
stat:
path: '{{cfssl_bin_directory}}/cfssljson'
register: cfssljson_exist
- name: Download statically linked cfssljson binary
get_url:
url: https://github.com/cloudflare/cfssl/releases/download/v{{cfssl_version}}/cfssljson_{{cfssl_version}}_linux_amd64
dest: '{{cfssl_bin_directory}}/cfssljson'
mode: 0755
when: cfssljson_exist.stat.exists == false