like so often :-), the problem went away by running the playbook several times 
now.
 
Sorry for the false alarm
 

> On 07/14/2022 9:11 AM CEST dulhaver via Ansible Project 
> <[email protected]> wrote:
>  
>  
> sorry, I just noted the indentation got messed up. The TASKS in question look 
> as follows:
>  
> ===============================================================================================
>  
> - name: install preps - create config files
>   file:
>     state: touch # sudo touch /etc/pgbackrest/pgbackrest.conf
>     path: " {{ item }} "
>     owner: pgbackrest # sudo chown pgbackrest:pgbackrest 
> /etc/pgbackrest/pgbackrest.conf
>     group: pgbackrest
>     mode: '0640' # sudo chmod 640 /etc/pgbackrest/pgbackrest.conf
>   become: true
>   loop:
>     - /etc/pgbackrest/pgbackrest.conf # ERROR: not being created !!!
>  
> 
> - name: repository - Create the pgBackRest repository
>   file:
>     state: directory
>     path: " {{ item }} "
>     mode: '0755'            # sudo chmod 750 /var/lib/pgbackrest
>     owner: pgbackrest       # sudo chown pgbackrest:pgbackrest 
> /var/lib/pgbackrest
>     group: pgbackrest
>   become: true
>   loop:
>     - /var/lib/pgbackrest # sudo mkdir -p /var/lib/pgbackrest    # ERROR: not 
> being created !!!
>  
>  
> ===============================================================================================
>  
> 
> > On 07/13/2022 3:08 PM CEST dulhaver via Ansible Project 
> > <[email protected]> wrote:
> >  
> >  
> > I have a ./roles/pgBackRest_install/tasks/main.yml aiming to install 
> > pgBackRest.
> >  
> > the entire roles goes through without any problem but these 2 TASKS are 
> > practially not havin any effect on the target.
> > neiter /etc/pgbackrest/pgbackrest.conf, nor /var/lib/pgbackrest are being 
> > created (eventhough the playbook execution reports "ok" *the 1st one) and  
> > "changed" (the 2nd).
> >  
> >  
> > - name: install preps - create config files
> > file:
> > state: touch # sudo touch /etc/pgbackrest/pgbackrest.conf
> > path: " {{ item }} "
> > owner: pgbackrest # sudo chown pgbackrest:pgbackrest 
> > /etc/pgbackrest/pgbackrest.conf
> > group: pgbackrest
> > mode: '0640' # sudo chmod 640 /etc/pgbackrest/pgbackrest.conf
> > become: true
> > loop:
> > - /etc/pgbackrest/pgbackrest.conf # ERROR: not being created !!!
> >  
> > 
> > - name: repository - Create the pgBackRest repository
> > file:
> > state: directory
> > path: " {{ item }} "
> > mode: '0755' # sudo chmod 750 /var/lib/pgbackrest
> > owner: pgbackrest # sudo chown pgbackrest:pgbackrest /var/lib/pgbackrest
> > group: pgbackrest
> > become: true
> > loop:
> > - /var/lib/pgbackrest # sudo mkdir -p /var/lib/pgbackrest    # ERROR: not 
> > being created !!!
> >  
> >  
> > any idea, what might be going wrong here? Other file TASKS work as expected 
> > in that same role.
> >  
> > 
> >  
> > 
> > --
> > 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] 
> > mailto:[email protected].
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/ansible-project/1829021409.469761.1657717704044%40office.mailbox.org
> >  
> > https://groups.google.com/d/msgid/ansible-project/1829021409.469761.1657717704044%40office.mailbox.org?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] 
> mailto:[email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/743478954.512720.1657782686444%40office.mailbox.org
>  
> https://groups.google.com/d/msgid/ansible-project/743478954.512720.1657782686444%40office.mailbox.org?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/1673957468.520764.1657786971349%40office.mailbox.org.

Reply via email to