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.

25 lines
572 B

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