Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Upload dashboard files from git repo
- git:
- repo: "{{ item.dashboard.src }}"
- dest: "/tmp/"
- clone: yes
- update: yes
- version: "{{ item.dashboard.branch }}"
- when: "{{ item.dashboard.type == 'git' }}"
- with_items: "{{dashboard_src}}"
- - name: Upload dashboard files from dir
- copy:
- src: "{{ item.dashboard.src }}"
- dest: "/tmp/"
- when: "{{ item.dashboard.type == 'file' }}"
- with_items: "{{dashboard_src}}"
- - name: Copy dashboard content to horizon
- file:
- src: "/tmp/{{item.name}}/{{item.dashboard_dir}}/"
- dest: "{{dashboard_dashboards_folder}}/{{item.dashboard.dashboard_dir}}"
- when: "{{ item.dashboard.type == 'file' or item.dashboard.type == 'git' }}"
- with_items: "{{dashboard_src}}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement