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/9a4e528c63307a3763eeedbc027494af%40olstad.com.

Reply via email to