Commit Graph

1874 Commits (3cd25b5b0bbe0ac67003d6b3d79b30d387b20352)
 

Author SHA1 Message Date
Piotr Kweclich 8360f9f46c added support for custom port definition 12 years ago
Marco Vito Moscaritolo 2dd430d9c0 Add support to removes control param
Execute action only if specified file using param removes exist (execute reverse control of creates).

Some usage eg.:

```yaml
- name: enable apache2 default websites
  action: command /usr/sbin/a2ensite $item
creates=/etc/apache2/sites-enabled/$item
  with_items:
    - default
    - default-ssl

- name: disable apache2 default websites
  action: command /usr/sbin/a2dissite $item
removes=/etc/apache2/sites-enabled/$item
  with_items:
    - default
    - default-ssl
```
12 years ago
Michael DeHaan f41d3b9bd2 Fix skipped callback 12 years ago
Michael DeHaan eed031cd82 Check for ipv6 12 years ago
Michael DeHaan 96f257cea1 Fix invocation-output-supression code to still provide invocation data to the callbacks. 12 years ago
Michael DeHaan 2843e31e09 Don't add 'n/a' because if running from source there will be no git 12 years ago
Michael DeHaan 0c386b0514 Merge pull request #993 from andronat/repo-as-submodule
Fixed a parsing HEAD problem, when ansible is checked out as a submodule
12 years ago
Anastasis Andronidis ba707f56c1 except now returns a 'n/a' version. Some changes in comments 12 years ago
Michael DeHaan ca7b5cc5a3 update changelog 12 years ago
Michael DeHaan aa704a6111 backuplocal => backup_local for API standardization reasons 12 years ago
Michael DeHaan b97e2a6f5a Merge branch 'backup-common' of https://github.com/dhozac/ansible into devel 12 years ago
Michael DeHaan c69c3d6e18 Merge pull request #995 from mattupstate/devel
Use `get_bin_path` properly for supervisorctl module
12 years ago
Michael DeHaan 758f172027 Merge pull request #996 from dhozac/keep-unsuccessful-result
Keep result pristine for ignore_errors
12 years ago
Daniel Hokka Zakrisson 7a201dbb2e Keep result pristine for ignore_errors 12 years ago
Anastasis Andronidis 63b4f8dd80 small typo 12 years ago
Anastasis Andronidis 44a28838db Fault handling for YAML file and gitdir value. 12 years ago
Daniel Hokka Zakrisson a5d63532d3 Add backup to assemble 12 years ago
Daniel Hokka Zakrisson 2a8b92954f Add backups to lineinfile 12 years ago
Daniel Hokka Zakrisson dfcb9d3c2d Move backup to module_common 12 years ago
Anastasis Andronidis 6c8171f6f9 Appended repo_path 12 years ago
Anastasis Andronidis 4e94db3d78 Fixed a parsing HEAD problem, when ansible is checked out as a submodule
Fixed a parsing HEAD problem, when ansible is checked out as a
submodule in git
12 years ago
Michael DeHaan 7c2fe3da16 Merge pull request #989 from willthames/command-expand-path
Allow ~ expansion in chdir argument of command module
12 years ago
willthames 8b8eae7d82 Allow ~ expansion in chdir argument of command module
This allows the use of ~ in the chdir argument of the command module
I know the later change is absolutely necessary as the first change
was not sufficient. It may be that the first change fixes shell and
the second fixes command.
12 years ago
Michael DeHaan 8c028c4cfa Merge pull request #988 from willthames/svn-expand-path
Subversion dest should allow ~ expansion
12 years ago
willthames d4c4a51866 Subversion dest should allow ~ expansion
Used os.path.expanduser on dest to allow e.g. ~/svn/repo as
a destination
12 years ago
Michael DeHaan 8f220a4f77 Always pipe stderr in the setup module to avoid JSON interference. 12 years ago
Michael DeHaan c04f00e3a6 Fix async callback 12 years ago
Matt Wright d52f1d969b Use `get_bin_path` properly 12 years ago
Matt Wright a092eadbbb Fix supervisorctl module after merge issue 12 years ago
Michael DeHaan 9b6cf8db4f Merge pull request #977 from jpmens/fromjson
Jinja2 filter from_json added, to_json renamed
12 years ago
Jan-Piet Mens a37c6ea936 Jinja2 filter from_json added, to_json renamed 12 years ago
Michael DeHaan f140332ff6 Make it possible in the inventory file to have spaces in host variables 12 years ago
Michael DeHaan 8e02b165f1 chmod +x 12 years ago
Michael DeHaan b0ac7e07b0 Merge branch 'binpath' of https://github.com/sfromm/ansible into devel
Conflicts:
	library/supervisorctl
12 years ago
Michael DeHaan a454db5345 Merge pull request #970 from mattupstate/devel
Improve apt_repository and supervisorctl
12 years ago
Michael DeHaan c774208bba update changelog 12 years ago
Michael DeHaan 90f051f818 Merge pull request #971 from sfromm/seboolean
Add seboolean module
12 years ago
Michael DeHaan 092bd8e3da make parameter required 12 years ago
Michael DeHaan 4da4c31dfb Merge pull request #974 from goozbach/add_selinux_module
add selinux module
12 years ago
Derek Carter 2aa760a3fc add selinux module 12 years ago
Stephen Fromm 6742e9c3f4 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 b93df1fc60 Update handling of state changes 12 years ago
Matt Wright bdfccbfb34 Move conditional that accounts for variances in distros/versions to work when removing and adding. 12 years ago
Stephen Fromm 97c2e58081 Add seboolean module
Will manage values of seboolean on a host.  Options are name (name of
boolean), state (on or off), and persistent (on or off).  Persistent
defaults to no.
12 years ago
Stephen Fromm e5a635672c 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 4e7b67a45a Add option to pass list of dirs to get_bin_path in module_common.py
The optional list is prepended to PATH.
Fix get_bin_path() to use os.path.join().
12 years ago
Stephen Fromm bdb39058ae Migrate apt_repository, group, and supervisorctl to use module.get_bin_path 12 years ago
Stephen Fromm 4c62e495eb Add method get_bin_path to module_common.py
This is meant to assist all the modules that look for the full path of
an executable.  If it is found and is X_OK, returns the full path.
Otherwise, it returns None.
12 years ago
Michael DeHaan 2834ced1f0 Merge pull request #961 from bcoca/freebsd2
Freebsd2
12 years ago
Michael DeHaan 71cc73e142 Merge pull request #964 from dhozac/lineinfile
Add a lineinfile module
12 years ago