2024-09-11 21:47:47 +02:00
|
|
|
---
|
|
|
|
- name: Git fetch acme.sh repository
|
|
|
|
ansible.builtin.git:
|
2024-09-13 14:53:21 +02:00
|
|
|
repo: "{{ acme_sh_git_repo }}"
|
|
|
|
dest: "{{ acme_sh_git_folder }}"
|
2024-09-11 21:47:47 +02:00
|
|
|
|
|
|
|
- name: Install acme.sh
|
2024-09-13 14:53:21 +02:00
|
|
|
ansible.builtin.command:
|
|
|
|
chdir: "{{ acme_sh_git_folder }}"
|
|
|
|
cmd: |
|
|
|
|
/bin/sh acme.sh
|
|
|
|
--install
|
|
|
|
--home {{ acme_sh_home | quote }}
|
|
|
|
--cert-home {{ acme_sh_cert_home | quote }}
|
|
|
|
--config-home {{ acme_sh_config_home | quote }}
|
|
|
|
-m {{ acme_sh_email | quote }}
|
|
|
|
creates: "{{ acme_sh_home }}"
|
2024-09-13 18:30:39 +02:00
|
|
|
|
|
|
|
- name: Set CA
|
|
|
|
ansible.builtin.command:
|
|
|
|
chdir: "{{ acme_sh_home }}"
|
|
|
|
cmd: |
|
|
|
|
/bin/sh acme.sh
|
|
|
|
--config-home {{ acme_sh_config_home | quote }}
|
|
|
|
--set-default-ca
|
|
|
|
--server {{ acme_sh_default_ca_server | quote }}
|
2024-09-14 21:51:44 +02:00
|
|
|
creates: "{{ acme_sh_home }}/ca_set_by_ansible"
|
2024-10-28 17:41:19 +01:00
|
|
|
|
|
|
|
|