Fix issues reported by ansible-lint (var prefixes)

This commit is contained in:
Tobias Reisinger 2025-11-23 19:47:09 +01:00
parent 0f9e4544b0
commit 39fd6ef5a2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
24 changed files with 86 additions and 86 deletions

View file

@ -1,19 +1,19 @@
---
- name: Set config path
ansible.builtin.set_fact:
config_path: "{{ (service_path, 'config') | path_join }}"
lego_config_path: "{{ (service_path, 'config') | path_join }}"
- name: Create config directory
ansible.builtin.file:
path: "{{ config_path }}"
path: "{{ lego_config_path }}"
state: directory
mode: "0755"
- name: Create the acme-dns-accounts
ansible.builtin.copy:
dest: "{{ (config_path, 'acme-dns-accounts.json') | path_join }}"
dest: "{{ (lego_config_path, 'acme-dns-accounts.json') | path_join }}"
content: '{{ vault_acmedns_registered | acmedns_to_lego | to_json }}'
mode: "0644"
- name: Copy the hook script
ansible.builtin.copy:
src: "hook.sh"
dest: "{{ (config_path, 'hook.sh') | path_join }}"
dest: "{{ (lego_config_path, 'hook.sh') | path_join }}"
mode: "0755"