You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Stephen Fromm 1165866ecb Update git module to handle branches better
This drops the branch option.  The version option is overloaded
to mean either a sha1, branch, or tag.  This also adds the option
'remote' which defaults to 'origin'.
clone() was simplified by removing the checkout operation.  That
happens later when switch_version() is called.

Added the methods get_branches(), is_remote_branch(), and
is_local_branch().  get_branches() returns an array listing all
of the branches for the git repository.  is_remote_branch() checks
whether the arguments supplied correspond to a remote branch.
Similarly, is_local_branch() checks for a local branch.

The pull() method now checks to see if it is on the desired branch.
If not, it checks out the requested branch and then does a pull.
This should keep issue #604 still fixed.

switch_version(), formerly switchver(), looks to see if it is
checking out a branch.  If a branch, it checks it out with the --track
option.  This type of checkout was in pull() before.

Updated pull, clone, and switch_version to return (rc, out, err).
12 years ago
apt add noninteractive to debian module per #602 13 years ago
assemble More cleanup in assemble module for module magic (tm) 12 years ago
async_status Port async_status to use the new common code. 12 years ago
async_wrapper Apply logging of arguments to modules (issue #122) 13 years ago
authorized_key Fixes ansible/ansible#522, no longer creates comment in ~/.ssh/authorized_keys, does not create directory or file if state==absent. 13 years ago
command Port command module over to new common code. Notice that this has to subclass AnsibleModule -- this should be the only 12 years ago
copy imports not needed 12 years ago
facter Standardizing the module 12 years ago
failtest Surface module debug (-D) to /usr/bin/ansible also 13 years ago
fetch Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications 13 years ago
file Fix file module to support = in args; remove superflous call in get_url 12 years ago
get_url Fix file module to support = in args; remove superflous call in get_url 12 years ago
git Update git module to handle branches better 12 years ago
group Update group module to use new shared module code 12 years ago
mount Standardizing the mount module 12 years ago
mysql_db Upgrading MySQL user module to new format 12 years ago
mysql_user Upgrading MySQL user module to new format 12 years ago
ohai Apply logging of arguments to modules (issue #122) 13 years ago
ping Save the transfer of the module file for new style modules, because we can inject the arguments into the modules. 12 years ago
raw Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications 13 years ago
service Service module outputting extra data. 12 years ago
setup Fixes locale problem with ifconfig in setup module 12 years ago
shell Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications 13 years ago
slurp By defining a main function here, and including it ahead of the boilerplate insertion symbol, tracebacks are 12 years ago
template Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications 13 years ago
user Undefined variable error 12 years ago
virt Tweaks on previous refactoring of playbook, version bump a 0.4 reference, remove some debug, etc 13 years ago
yum Further standardize the yum module 12 years ago