Skip to content

Commit 5549ab4

Browse files
authored
Remove delegate_to when creating directories for certificate (#63)
* Use inventory_hostname instead of localhost This allows the usage of management hosts for the local provider
1 parent 40a5039 commit 5549ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/acme/tasks/preconditions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
acme_directory: "{{ acme_use_live_directory | ternary(acme_live_directory, acme_staging_directory) }}"
1212

1313
- name: create directories for acme certificates
14-
delegate_to: localhost
14+
delegate_to: "{{ inventory_hostname }}"
1515
file:
1616
path: "{{ item }}"
1717
state: directory

0 commit comments

Comments
 (0)