ACME auto certificate #7

Merged
clement.veret merged 3 commits from auto_acme into main 2025-04-10 13:37:21 +02:00
8 changed files with 46 additions and 1 deletions
Showing only changes of commit f4fcaca041 - Show all commits

View File

@@ -13,15 +13,16 @@
register: _nginx_x509_ecc_dir
- name: Move dir if exists
when: _nginx_x509_ecc_dir.stat.exists
block:
- name: Copy ecc dir
ansible.builtin.copy:
remote_src: true
src: "/etc/x509/{{ host.host }}_ecc/"
dest: "/etc/x509/{{ host.host }}"
mode: "{{ _nginx_x509_ecc_dir.stat.mode }}"
- name: Remove ecc dir
ansible.builtin.file:
path: "/etc/x509/{{ host.host }}_ecc/"
state: absent
when: _nginx_x509_ecc_dir.stat.exists