Re: [ansible-project] file ... directory only created on 2nd run

2022-01-21 Thread Todd Lewis
The output you posted - with items "/opt/db/backup/mysql" and "/opt/db/data/mysql" - is not from the task you posted previously. That task had items "backup" and "data". Either you've inadvertently confused which steps are doing what, or you've left out relevant details in a kind but unsuccessf

Re: [ansible-project] file ... directory only created on 2nd run

2022-01-21 Thread Dick Visser
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 < ansible-project@googlegroups.com> wrote:

Re: [ansible-project] file ... directory only created on 2nd run

2022-01-21 Thread dulhaver via Ansible Project
> On 01/21/2022 10:27 AM Dick Visser 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' & 'd

Re: [ansible-project] file ... directory only created on 2nd run

2022-01-21 Thread Dick Visser
Depends on what the actual failure is, you didn't provide any error details. On Fri, 21 Jan 2022 at 09:46, dulhaver via Ansible Project < ansible-project@googlegroups.com> wrote: > I have this TASK in a roles tasks/main.yml > > it reliably (almost 100% of the occassions I'd say) fails to create t

[ansible-project] file ... directory only created on 2nd run

2022-01-21 Thread dulhaver via Ansible Project
I have this TASK in a roles tasks/main.yml it reliably (almost 100% of the occassions I'd say) fails to create the directory 'data' on the 1st run of the playbook. Also with 100% reliabilty it succeeds with this on a 2nd run - name: create db dirs file: path: "{{ db_base }}/{{ item }}"