Compare commits

...

1 Commits

Author SHA1 Message Date
VC
f4fcaca041 🚨: lint properly acme.yml
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m30s
2025-04-10 13:35:29 +02:00

View File

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