From baa10754880d41d36aebafcb7d494d2d1f7559f4 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Mon, 22 Apr 2024 12:18:28 +0200 Subject: [PATCH] remove role_version --- README.md | 4 ++-- tasks/main.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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"