Put a task just before that, with some debug for instance a directory
listing so you can check if it's really there or permission issues etc

Otherwise looks like a race condition in your playbook

On Fri, 21 Jan 2022 at 11:19, dulhaver via Ansible Project <
[email protected]> wrote:

>
> On 01/21/2022 10:27 AM Dick Visser <[email protected]> wrote:
>
>
> Depends on what the actual failure is, you didn't provide any error
> details.
>
> the file TASK itself messages sucessful execution
>
> 2022-01-21 10:45:26,850 p=1753880 u=gwagner n=ansible | TASK
> [resize_vgsys_mariadb : create mariadb 'backup' & 'data' dirs]
> *****************************************
> ********************************************************
> 2022-01-21 10:45:27,140 p=1753880 u=gwagner n=ansible | changed:
> [vm-51150-0198.intern] => (item=/opt/db/backup/mysql)
> 2022-01-21 10:45:27,383 p=1753880 u=gwagner n=ansible | *changed*:
> [vm-51150-0198.intern] => (item=*/opt/db/data/mysq*l)
>
> later on another TASK complains about the missing directory
>
> TASK [mariadb_install : prepare install - cp my.cnf >>
> /opt/db/data/mysql/]
> *****************************************************************************************
> failed: [vm-51150-0198.intern] (item=my.cnf) => changed=false
> ansible_loop_var: item
> item: my.cnf
> msg: Destination directory */opt/db/data/mysql* does not exist
>
> --
> 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/1093382968.708042.1642760353398%40office.mailbox.org
> <https://groups.google.com/d/msgid/ansible-project/1093382968.708042.1642760353398%40office.mailbox.org?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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/CAL8fbwMPSsym%2BnAqJJVdemkt%3Dq69EaZuqmyUHRaC_DX5HOyDEw%40mail.gmail.com.

Reply via email to