You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
740 B

  1. ---
  2. # Deploy git infos
  3. # ----------------
  4. - name: 'GIT | Install script for collecting git info'
  5. template:
  6. src: "{{ role_path }}/gen-gitinfos.sh"
  7. dest: "{{ bin_dir }}/gen-gitinfos.sh"
  8. mode: a+rwx
  9. - name: 'GIT | generate git informations'
  10. local_action: command {{ role_path }}/gen-gitinfos.sh global
  11. register: gitinfo
  12. always_run: yes
  13. - name: 'GIT | copy ansible information'
  14. template:
  15. src: ansible_git.j2
  16. dest: /etc/.ansible.ini
  17. backup: yes
  18. - name: 'GIT | generate diff file'
  19. local_action: command {{ role_path }}/gen-gitinfos.sh diff
  20. register: gitdiff
  21. always_run: yes
  22. - name: 'GIT | copy git diff file'
  23. copy:
  24. content: "{{ gitdiff.stdout }}"
  25. dest: /etc/.git-ansible.diff
  26. backup: yes