trying like this 

 with_items:
        - "{{ dashboards_imported_from_latest_backup ~ 
'/Artifactory_Monitoring.json' }}"



On Saturday, February 1, 2020 at 11:24:05 AM UTC+5:30, Vishal Bobade wrote:
>
> 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/a65c6e22-ba85-4873-978d-0a5710ee4002%40googlegroups.com.

Reply via email to