Thanks Stefan for looking into this. actually I want to import some grafana 
dashboards and I need to map this import_back_up_dir (which I cannot 
hardcode) to appropriate json files. so I want to find a way to concatenate 
these.

On Friday, January 31, 2020 at 11:56:45 PM UTC+5:30, Vishal Bobade wrote:
>
> Replied
>
> On Friday, January 31, 2020 at 11:07:36 PM UTC+5:30, Stefan Hornburg 
> (Racke) wrote:
>>
>> On 1/31/20 6:17 PM, 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. 
>>
>> Maybe you give us the objective of your task first ... 
>>
>> Regards 
>>          Racke 
>> > _ 
>> > 
>> > -- 
>> > 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/98f66710-6fc0-4b1f-afdf-6190afab69c2%40googlegroups.com
>>  
>> > <
>> https://groups.google.com/d/msgid/ansible-project/98f66710-6fc0-4b1f-afdf-6190afab69c2%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>  
>>
>>
>>
>> -- 
>> Ecommerce and Linux consulting + Perl and web application programming. 
>> Debian and Sympa administration. Provisioning with Ansible. 
>>
>>

-- 
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/d8605c75-f314-49a2-9545-713edecad681%40googlegroups.com.

Reply via email to