HI kai,
thanks for the response. however I am trying to use inside looping
with_items it isn't working.
"msg": "error : Can't load json file [Errno 2] No such file or directory:
'{\\'stderr_lines\\':
On Saturday, February 1, 2020 at 12:57:57 AM UTC+5:30, Kai Stian Olstad
wrote:
>
> On 31.01.2020 18:17, Vishal Bobade wrote:
> > *Is it possible to concatenate like below?*
> >
> > - name: Retaining latest backup directory
> > shell: find $(pwd)/*backup* -type d -prune -exec ls -d {} \;
> > |tail -1
> > register: import_back_up_dir
> >
> > - name: Import dashboard
> > grafana_dashboard:
> > state: present
> > message: Updated by ansible
> > overwrite: no
> > path: "{{ item }}"
> > with_items:
> > - "{{ import_back_up_dir }} + SonarQube_Dashboard.json"
> > *>>>>>> I am trying to concatenate like this however this is not
> > working -
> > could some one please suggest how can we achieve this concatenation.*
>
> Concatenate need to be done in inside of {{ }} and use tilde
>
> "{{ import_back_up_dir ~ 'SonarQube_Dashboard.json' }}"
>
> --
> Kai Stian Olstad
>
--
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/6287a30e-8a13-45a7-8a15-453b2aa38839%40googlegroups.com.