Hi, I want to perform the following task as a possible task in order to output the last commit id to local:
- name: get latest git commit id
local_action: "command git rev-parse HEAD"
register: git_commit_id
but I get a warning because I use command. Since it gitis the indispensable core of the module: http://docs.ansible.com/ansible/git_module.html
How can I accomplish this with the git module?
Ankit source
share