]> git.phdru.name Git - ansible.git/commitdiff
Fix(fetch-push/push): `dest_dir` is always a directory
authorOleg Broytman <phd@phdru.name>
Tue, 21 Jun 2022 20:59:41 +0000 (23:59 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 21 Jun 2022 20:59:41 +0000 (23:59 +0300)
Create a new one if it doesn't exist.

playbooks/fetch-push/push.yml

index 1965adccf27fcec29b6800b916f21c263366ba0b..b2ad0e2062760f8e73d33a98fecb7670072a6683 100644 (file)
@@ -6,7 +6,7 @@
     - name: Copy files
       copy:
         src: "{{ start_dir }}/{{ inventory_hostname }}/{{ item }}"
     - name: Copy files
       copy:
         src: "{{ start_dir }}/{{ inventory_hostname }}/{{ item }}"
-        dest: "{{ dest_dir }}"
+        dest: "{{ dest_dir }}/"
         owner: "{{ owner | default('root') }}"
         group: "{{ group | default('root') }}"
         mode: "{{ mode | default('0644') }}"
         owner: "{{ owner | default('root') }}"
         group: "{{ group | default('root') }}"
         mode: "{{ mode | default('0644') }}"