ansible / ansible.builtin / v2.3.2.0-1 / module / hg Manages Mercurial (hg) repositories. | "added in version" 1.0 of ansible.builtin" Authors: Yeukhon Wong (@yeukhon) preview | supported by communityansible.builtin.hg (v2.3.2.0-1) — module
pip
Install with pip install ansible==2.3.2.0.post1
Manages Mercurial (hg) repositories. Supports SSH, HTTP/S and local address.
# Ensure the current working copy is inside the stable branch and deletes untracked files if any. - hg: repo: https://bitbucket.org/user/repo1 dest: /home/user/repo1 revision: stable purge: yes
# Example just get information about the repository whether or not it has # already been cloned locally. - hg: repo: git://bitbucket.org/user/repo dest: /srv/checkout clone: no update: no
dest: default: null description: - Absolute path of where the repository should be cloned to. This parameter is required, unless clone and update are set to no required: true repo: aliases: - name default: null description: - The repository address. required: true clone: choices: - 'yes' - 'no' default: 'yes' description: - If C(no), do not clone the repository if it does not exist locally. required: false version_added: '2.3' version_added_collection: ansible.builtin force: choices: - 'yes' - 'no' default: 'no' description: - Discards uncommitted changes. Runs C(hg update -C). Prior to 1.9, the default was `yes`. required: false purge: choices: - 'yes' - 'no' default: 'no' description: - Deletes untracked files. Runs C(hg purge). required: false update: choices: - 'yes' - 'no' default: 'yes' description: - If C(no), do not retrieve new revisions from the origin repository required: false version_added: '2.0' version_added_collection: ansible.builtin revision: aliases: - version default: null description: - Equivalent C(-r) option in hg command which could be the changeset, revision number, branch name or even tag. required: false executable: default: null description: - Path to hg executable to use. If not supplied, the normal mechanism for resolving binary paths will be used. required: false version_added: '1.4' version_added_collection: ansible.builtin