Commit Graph

24 Commits (78f82a089d485b0407fe00e7a76df0bfd2605160)

Author SHA1 Message Date
Stephen Fromm 568f7892cd Update various modules for check_mode
This updates the following modules to support check_mode:
* apt_key
* apt_repository
* easy_install
* pip - will always report changed due to the way it handles state
* seboolean
* selinux
* slurp - since nothing changes, it just adds that it supports
  check_mode
* subversion - reports changed when checking out new repo and
  when updating.
* supervisorctl
* svr4pkg

See issue #2114.
12 years ago
Stephen Fromm 25d6975f67 Update apt_repository to query if repo is already configured
This adds two dependencies to the apt_repository module:  apt and
apt_pkg.  These come from the package python-apt.  This is used to parse
the host's sources.list and examine whether the repo is already
configured.  This then eliminates the unnecessary
'add-apt-repository --remove' from running.
12 years ago
Stephen Fromm e4964f42e0 Update modules to use run_command in module_common.py
This updates apt, apt_repository, command, cron, easy_install, facter,
fireball, git, group, mount, ohai, pip, service, setup, subversion,
supervisorctl, svr4pkg, user, and yum to take advantage of run_command
in module_common.py.
12 years ago
Lorin Hochstein 1dc2521b23 Fix ppa syntax in apt_repository module doc
The example for using a ppa had the wrong syntax.

Ironically, the correct syntax is illustrated in a comment on line 23.
12 years ago
Jan-Piet Mens d184f72aa9 DOCUMENTATION strings 12 years ago
Michael DeHaan 6f6559670f chmod -x for all module files in source checkout 12 years ago
Jan-Piet Mens d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
12 years ago
Michael DeHaan 671e4de3fb Fix help text 12 years ago
Philipp Grau e1716e505d Add note: Debian Squeeze has no add-apt-repository 12 years ago
Michael DeHaan 2d096ea425 Fixing various module related things. 12 years ago
Jan-Piet Mens c78a0a4a49 Jumbo DOCUMENTATION patch 12 years ago
Jan-Piet Mens 6d1dbe56fd Removed embedded colon in DOCUMENTATION of apt_repository: building manpages failed 12 years ago
Jan-Piet Mens e3a5de2624 module DOCUMANTATION for apt, apt_respository cleanup 12 years ago
Marco Vito Moscaritolo 64c6634788 Added documentation to APT_REPOSITORY module 12 years ago
Michael DeHaan 47ead9349b Merge branch 'binpath' of https://github.com/sfromm/ansible into devel
Conflicts:
	library/supervisorctl
12 years ago
Stephen Fromm 1222cf8de9 Add option required=(True|False) to get_bin_path and update modules
Added required as optional argument to get_bin_path(). It defaults to
false.  Updated following modules to use required=True when calling
get_bin_path():  apt_repository, easy_install, group, pip,
supervisorctl, and user.
Also removed _find_supervisorctl() from supervisorctl module and updated
_is_running() to not need it.
12 years ago
Matt Wright 46f962210a Move conditional that accounts for variances in distros/versions to work when removing and adding. 12 years ago
Stephen Fromm f0da6b191a Migrate remaining modules to use get_bin_path in module_common.py
* Migraed easy_install, pip, service, setup, and user.
* Updated fail_json message in apt_repository
* Fixed easy_install to not hardcode location of virtualenv in
  /usr/local/bin/.
* Made handling of virtualenv more consistent between easy_install and
  pip.
12 years ago
Stephen Fromm a284228e10 Migrate apt_repository, group, and supervisorctl to use module.get_bin_path 12 years ago
Sebastien Bocahu c7ada98af0 Quote the repository string when appending it to the command line in the apt_repository module. 12 years ago
Sebastien Bocahu 41422e852c Add support for Debian in apt_repository 12 years ago
Sebastien Bocahu b030d787fd Fixed scoping issue in apt_repository module. 12 years ago
Matt Wright 92f7829163 Update per ansible/ansible#794 12 years ago
Matt Wright 29c3099c84 add apt_repository module 12 years ago