Some changes on acme.sh install process

- Remove useless git directory
- Force use letsencrypt as default CA
feature/add_main_opts
Emilien Mantel 2021-09-10 16:02:24 +02:00
parent 8de557346e
commit 0622f8ab87
2 changed files with 10 additions and 1 deletions

View File

@ -24,4 +24,12 @@
chdir: "{{ nginx_acmesh_git_dir }}"
creates: "{{ nginx_acmesh_dir }}"
- name: COMMAND | Force acme.sh to use letsencrypt (instead of zerossl)
ansible.builtin.command: '{{ nginx_acmesh_dir }}/acme.sh --set-default-ca --server letsencrypt --home "{{ nginx_acmesh_dir }}"'
when: not acme.stat.exists
- name: FILE | Remove temp acme.sh dir
ansible.builtin.file:
path: '{{ nginx_acmesh_git_dir }}'
state: absent

View File

@ -4,4 +4,5 @@
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
- name: IMPORT_TASKS | acme
ansible.builtin.include_tasks: "acme.yml"
ansible.builtin.import_tasks: "acme.yml"
when: nginx_acmesh