diff --git a/README.md b/README.md index 105d96e..72f7ac0 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Will insert date, name of calling role, version of calling role in /etc/history Should be included as dependent of others roles + Requirements ------------ @@ -16,7 +17,6 @@ Role Variables -------------- myrole_name - name of role -role_version - version of calling role Dependencies @@ -31,7 +31,7 @@ Not intended, but add this in meta/main.yml of your roles: ```yaml dependencies: -- { role: tco.changelog, role_version: 1.0, myrole_name: CHANGEME } +- { role: tco.changelog, myrole_name: CHANGEME } ``` diff --git a/tasks/main.yml b/tasks/main.yml index 50e01a2..0c5de01 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,3 +16,4 @@ 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"