ansible/git/commit.yml
2026-03-21 17:42:45 +00:00

13 lines
414 B
YAML

- hosts: localhost
tasks:
- name: Create dummy file for commit
ansible.builtin.copy:
content: "{{ ansible_date_time.iso8601_micro }}"
dest: "/data/mcp-history/dummy_file.txt"
- name: Commit current state
ansible.builtin.command: git -C /data/mcp-history add .
- name: Commit with message
ansible.builtin.command: git -C /data/mcp-history commit -m "{{ message }}"