On Fri, 15 Jul 2022 at 11:18, dulhaver via Ansible Project <
[email protected]> wrote:

>
>
> On 07/14/2022 6:00 PM CEST Todd Lewis <[email protected]> wrote:
>
> Remove the bogus leading and trailing spaces from `dest:`.
>
> spot on! thx. changing
>
> dest: " {{ item }} "   to
> dest: "{{ item }}"
>
> solves the issue. It's unexpected though that such a mistake does not
> produce any kind of error message.
>
>

Probably because there isn't an error. You will find that the files are
correctly created, likely with a leading and trailing space - as you told
ansible to.
The verbose output will tell - but you didn't provide that.


>
> On Thursday, July 14, 2022 at 9:41:54 AM UTC-4 [email protected] wrote:
>
> I have a TASK that should copy *~/files/repo_pgbackrest.conf* to the
> remote as */etc/pgbackrest/pgbackrest.conf* (note the differing file
> name).
>
> however, despite that fact playbook exection returns an 'ok' an that TASK,
> the file is *not pushed* to the remote.
>
> ==============================================================
>
> - name: install preps - push config file
>   copy:
>     src: files/repo_pgbackrest.conf # was: repo_pgbackrest.conf
>     dest: " {{ item }} "
>     mode: '0640'
>         owner: pgbackrest
>     group: pgbackrest
>   become: true
>   loop:
>     - /etc/pgbackrest/pgbackrest.conf
>
> ==============================================================
>
> Knowing that sometimes things only work after several re-runs I executed
> this about 5 times with the exact same, unwanted behavior.
>
> So ... what am I doing wrong here?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2f0cb460-4513-49f3-b0f9-10bf61a54c4en%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2f0cb460-4513-49f3-b0f9-10bf61a54c4en%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/327020614.605406.1657876696511%40office.mailbox.org
> <https://groups.google.com/d/msgid/ansible-project/327020614.605406.1657876696511%40office.mailbox.org?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from Gmail Mobile

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLZ6D8r5AUHCFhYQ%2BE5sY77_BS_Wrks3rMO%2BZxwkvOVVGA%40mail.gmail.com.

Reply via email to