This commit is contained in:
2023-03-22 10:05:56 +00:00
parent de21975d1a
commit c7c6bd6318
14 changed files with 277 additions and 0 deletions

46
sib.changelog/README.md Normal file
View File

@@ -0,0 +1,46 @@
Role Name
=========
Simple role to create changelog on remote server
Will insert date, name of calling role, version of calling role in /etc/history
Should be included as dependent of others roles
Requirements
------------
None
Role Variables
--------------
myrole_name - name of role
role_version - version of calling role
Dependencies
------------
None
Example Playbook
----------------
Not intended, but add this in meta/main.yml of your roles:
```yaml
dependencies:
- { role: tco.changelog, role_version: 1.0, myrole_name: CHANGEME }
```
License
-------
BSD
Author Information
------------------
Thomas C <thomas@opendoor.fr>

View File

@@ -0,0 +1,8 @@
---
# tasks file for log
- name: "update ansible history"
ansible.builtin.lineinfile:
path: /etc/history
create: true
line: "{{ '%Y-%m-%d' | strftime }} {{ myrole_name }} {{ role_version }}"
tags: always,changelog