mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-03-14 10:32:10 +07:00
Some changes on acme.sh install process
- Remove useless git directory - Force use letsencrypt as default CA
This commit is contained in:
@@ -24,4 +24,12 @@
|
|||||||
chdir: "{{ nginx_acmesh_git_dir }}"
|
chdir: "{{ nginx_acmesh_git_dir }}"
|
||||||
creates: "{{ nginx_acmesh_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
|
when: not acme.stat.exists
|
||||||
|
|
||||||
|
- name: FILE | Remove temp acme.sh dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: '{{ nginx_acmesh_git_dir }}'
|
||||||
|
state: absent
|
||||||
|
|||||||
@@ -4,4 +4,5 @@
|
|||||||
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
|
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
|
||||||
|
|
||||||
- name: IMPORT_TASKS | acme
|
- name: IMPORT_TASKS | acme
|
||||||
ansible.builtin.include_tasks: "acme.yml"
|
ansible.builtin.import_tasks: "acme.yml"
|
||||||
|
when: nginx_acmesh
|
||||||
|
|||||||
Reference in New Issue
Block a user