git_commit – Makes git commit on repository¶
This module runs git status and if there are any changes on the repository makes git add * ana git commit
The below requirements are needed on the host that executes this module.
- git>=1.7.1 (the command line tool)
- path (True, any, None)
- The repository path
- commitMessage (False, any, None)
- Sets the commit message, if none uses timestamp
- name: Commit repo git_commit: path: /home/repository - name: Commit with message git_commit: path: /home/repository commitMessage: "Commit executed by Ansible"