20 lines
552 B
YAML
20 lines
552 B
YAML
---
|
|
# tasks file for log
|
|
- git:
|
|
repo: "ssh://git@infra.opendoor.fr/tom/{{ myrole_name }}"
|
|
update: no
|
|
clone: no
|
|
dest: /srv/repo
|
|
delegate_to: localhost
|
|
remote_user: tom
|
|
become: false
|
|
register: repo_info
|
|
tags: changelog
|
|
|
|
- lineinfile:
|
|
path: /etc/history
|
|
create: true
|
|
line: "{{ '%Y-%m-%d' | strftime }} {{ myrole_name }} {{ repo_info.after | regex_search( '[a-zA-Z0-9]{7}') }} https://infra.opendoor.fr/git/tom/{{ myrole_name }}/commit/{{ repo_info.after }}"
|
|
tags: changelog
|
|
name: "[changelog] : add history"
|