termlen0 / termlen0.caretaker / 1.0.16 / module / git_push Push software (or files) to git repository | "added in version" 2.9 of termlen0.caretaker" Authors: Victor da Costa preview | supported by communitytermlen0.caretaker.git_push (1.0.16) — module
Install with ansible-galaxy collection install termlen0.caretaker:==1.0.16
collections: - name: termlen0.caretaker version: 1.0.16
Manage I(git) push of files or software to repository.
- name: "push local to remote" git_push: repo: "/path/to/testrepo" accept_hostkey: "true" key_file: "~/deploy_keys/testrepo"
repo: aliases: - name description: - local repository path containing content. required: true force: description: - If C(yes), will force the push operation to remote repository. type: bool branch: default: master description: - Name of the branch. remote: default: origin description: - Name of the remote. key_file: description: - Specify an optional private key file path, on the target host, to use for the checkout. ssh_opts: description: - Define GIT_SSH_COMMAND environment variables, which git then automatically uses to override ssh arguments. An example value could be "-o StrictHostKeyChecking=no" (although this particular option is better set via C(accept_hostkey)). executable: description: - Path to git executable to use. If not supplied, the normal mechanism for resolving binary paths will be used. accept_hostkey: description: - if C(yes), ensure that "-o StrictHostKeyChecking=no" is present as an ssh option. type: bool