Commit graph

11656 commits

Author SHA1 Message Date
Chris Schmidt
469e874697 Renamd Module File 2016-12-08 11:32:29 -05:00
Chris Schmidt
73d34220dd Renamted module from download_artifact to maven_artifact 2016-12-08 11:32:29 -05:00
Chris Schmidt
15ac6aa0ea Updated w/ license
Added license
Added TODO for a “latest” state
Removed pending “latest” state work
2016-12-08 11:32:29 -05:00
Chris Schmidt
d219e6573f Added the download_artifact module
The download_artifact module resolves a maven dependency coordinate and
downloads the artifact to the target path
2016-12-08 11:32:29 -05:00
David Wittman
ef0f852041 Fix multiple issues with alternatives module
- Changes are no longer erroneously reported on RHEL (#12)
 - Adding new link groups on Debian works again.
   - This was broken in a previous commit by assuming the OS was RHEL
     if `update-alternatives --query <name>` had a return code of 2
 - Prefer `--display` over `--query` for determining available
   alternatives
   - --display is more distro-agnostic and simplifies the code
 - Fix missing `msg=` in `fail_json` call when `link` is missing
 - Document that `link` is required on RHEL-based distros

Tested on Ubuntu 12.04+ and CentOS 6/7
2016-12-08 11:32:29 -05:00
Sebastian Gumprich
906cca041b Added documentation and example for port ranges.
Also added punctuation marks.
2016-12-08 11:32:29 -05:00
Julien Pepy
97ed348e17 Clean options building in Composer module 2016-12-08 11:32:29 -05:00
Brian Coca
9fd9f3766e updated pushover version added 2016-12-08 11:32:29 -05:00
Jim Richardson
5edd0274de clarification of error and success messages 2016-12-08 11:32:29 -05:00
Jim Richardson
34f2ebc0ab remove extraneous info from preamble 2016-12-08 11:32:29 -05:00
Jim Richardson
becbf95d5d slight tweak to preamble to bring into common with other ansible modules 2016-12-08 11:32:29 -05:00
Jim Richardson
d7fcefac32 initial stab at pushover notification module 2016-12-08 11:32:29 -05:00
Brian Coca
8a785700c3 added version added to new color option 2016-12-08 11:32:29 -05:00
Phillip Holmes
66aa605367 added color bar option to Slack module
This update will allow people to add a color bar at the front of a
Slack notification using the default 3 colors by name Slack specify
(good, warning, danger).

If no color is specified, or the default is used (normal) then no bar
will be added.

Description and example also added in this update.

Color bars are added by using the attachments json object inside the
payload - this is a very simplistic implementation as using custom
colors or adding titles or other formatting are not included in this
update and if needed I’m sure somebody else can spend the time to add
them later…

Tested with ansible 1.7
2016-12-08 11:32:29 -05:00
Dustin C. Hatch
3e5a7bd475 system/lvol: Suppress prompts from lvcreate
Occasionally, `lvcreate` will prompt on stdin for confirmation. In
particular, this may happen when the volume is being created close to
the location on disk where another volume existed previously. When this
happens, Ansible will hang indefinitely with no indication of the
problem. To work prevent this problem, the `--yes` command-line argument
can be passed to `lvcreate`, which will instruct it not to prompt.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
2016-12-08 11:32:29 -05:00
HPLogsdon
8efd7d217e Fix typo in hipchat notification failure message.
Wish it could be more substantial, but alas, it's just a typo in a string.
2016-12-08 11:32:28 -05:00
Ben Copeland
770bf6b35f Added example block for the "SMTP username and password" 2016-12-08 11:32:28 -05:00
Dariusz Owczarek
3d93d22e54 new vertica modules 2016-12-08 11:32:28 -05:00
Marc Abramowitz
128cf5fd74 Add validate_certs param to bigip_* modules
Ignoring SSL cert verification may be necessary when testing with a
server that has a self-signed certificate.

See
https://github.com/ansible/ansible-modules-extras/pull/288#issuecomment-85196736
2016-12-08 11:32:28 -05:00
Brian Coca
bad5666c9e added missing __init__.py 2016-12-08 11:32:28 -05:00
Toshio Kuratomi
4ada937207 Make our regex match the homebrew tap upstream regex.
Fixes #312
Fixes #297
2016-12-08 11:32:28 -05:00
Brian Coca
1537c297b3 fixed doc issue (missing description and corrected version added) 2016-12-08 11:32:28 -05:00
Toshio Kuratomi
03be4fc2cb Don't know why but the 1.8.x branch didn't include the commit for crypttab.
Update documentation to show it is new in 1.9 as a result of that
oversight.
2016-12-08 11:32:28 -05:00
Dmitry Bashkatov
00c6f0b888 gluster_volume: remove redundant code 2016-12-08 11:32:28 -05:00
Dmitry Bashkatov
e0b6586c41 gluster_volume: use force option during add-brick 2016-12-08 11:32:28 -05:00
Dmitry Bashkatov
561df9ce94 gluster_volume: fixes, new "force" option 2016-12-08 11:32:28 -05:00
Ben Copeland
85f159eda3 Catch the error for non-ssl SMTP 2016-12-08 11:32:28 -05:00
Ben Copeland
cf941fc23a adding username/password support along with ssl/starttls 2016-12-08 11:32:28 -05:00
Larry Gilbert
cdc90f723f pkgin: support check mode, make other improvements
* Add support for check mode
* Use "pkgin search" to guarantee 0 or 1 result
* Edit documentation for style, new feature, etc.
* General refactoring
* Lay some groundwork for future support of "state=latest"
2016-12-08 11:32:28 -05:00
Brian Coca
a5d1d48e80 added installation info .. that you don't need to 2016-12-08 11:32:28 -05:00
Chad Norgan
2091b040ff Ignore lines that do not have the key in them
Some switches return multi-line output, which breaks the split function,
the change seeks to only preform the split on a line that has the key.
2016-12-08 11:32:27 -05:00
Richard Gray
e6bf26967c Set default for locale_gen state parameter
Fix the state parameter for the locale_gen module to be non-mandatory
with a default value of 'present', as indicated by the module
documentation.
2016-12-08 11:32:27 -05:00
Matthew Vernon
1e21e34e0f Changes from Brian Coca's review of this module
These are all the code changes from Brian's review:
* change #! line
* rename "host" to "name" [keep as alias]
* make documentation clearer
* imports 1 per line
* use get_bin_path to find ssh-keygen
* key not actually required when removing host
2016-12-08 11:32:27 -05:00
Matthew Vernon
e76ad916ef known_hosts: manage ssh known_hosts files with ansible.
The known_hosts module lets you add or remove a host from the
known_hosts file. This is useful if you're going to want to use the
git module over ssh, for example. If you have a very large number of
host keys to manage, you will find the template module more useful.

This was pull request 7840 from the old ansible repo, which was
accepted-in-principle but not yet merged. The mailing list thread
reading it is:

https://groups.google.com/forum/#!topic/ansible-devel/_e7H_VT6UJE/discussion
2016-12-08 11:32:27 -05:00
Misho Krastev
fcf8223dfe fix lvol module to properly query the size of logical volumes 2016-12-08 11:32:27 -05:00
Toshio Kuratomi
e00462712d The old slack webhook API still works. It's just deprecated by slack.
Analyze the given token and use the old webhook format if the token
is old style and use the new format if the token is new style.  Make
domain optional with new-style tokens.

Fixes #157
2016-12-08 11:32:27 -05:00
Simon JAILLET
c7b3dea395 composer: Fix changed status
Fix `changed` status that always returns False with composer.

This [previous PR](https://github.com/ansible/ansible-modules-extras/pull/61) had fixed the issue but because of a [Composer recent change](cb336a5416) stderr is now used for reporting information meant for humans while stdout is more for the output of the command.

This PR would definilty solve this issue.
2016-12-08 11:32:27 -05:00
Benjamin Kluck
56ecf602dc svc: Add kill command (svc -k) 2016-12-08 11:32:27 -05:00
Toshio Kuratomi
88fea228dc Fix postgresql_ext documentation 2016-12-08 11:32:27 -05:00
Toshio Kuratomi
d0ccafb6f5 Move other postgres module into the postgresql hierarchy 2016-12-08 11:32:27 -05:00
Daniel Schep
fe0e860d82 Import @dschep's module for installing postgres extensions.
Reviewed by @bcoca as a PR against the core repo here:
https://github.com/ansible/ansible-modules-core/pull/21
2016-12-08 11:32:27 -05:00
André Luiz dos Santos
f569b512c9 Variable name typo 2016-12-08 11:32:27 -05:00
Brian Coca
a7e20b4110 updated lxc-containter docs to reflect new name 2016-12-08 11:32:27 -05:00
Maciej Delmanowski
89179ed267 Rename 'lxc-container' module to 'lxc_container'
This is done to keep the convention of naming modules with underscores
instead of hypens.
2016-12-08 11:32:27 -05:00
Alexander Gubin
80e2de0e5d lvol: Cast size(LogicalVolumeSize) to lower to fix the difference between lvs and lvcreate 2016-12-08 11:32:27 -05:00
Konstantin
4602ca7bf4 pkgutil.py syntax fix 2016-12-08 11:32:27 -05:00
Matt Hite
d4b996203a Another potential fix for issue 109; now catches WebFault 2016-12-08 11:32:26 -05:00
Brian Coca
ed8842be47 removed unused import json which breaks 2.4/simplejson compat 2016-12-08 11:32:26 -05:00
Dagobert Michelsen
1ff1537329 Adjust setting to better make logic clearer 2016-12-08 11:32:26 -05:00
Dagobert Michelsen
474df33ff3 Correctly report "changed: false" when trying to install a package not in the catalog. This fixes #230 2016-12-08 11:32:26 -05:00
Jeppe Toustrup
0ea2cf77dd NPM: Expand the path before accessing it 2016-12-08 11:32:26 -05:00
Sterfield
02587fba94 Missing import re
I don't even know how it magically worked, but the fact is the code was
correct, and ran OK without the import re.
2016-12-08 11:32:26 -05:00
Sterfield
a674cb06e7 Now allow every type of locales + archlinux fix
The previous version of this code was supporting only locales using the
format "<language>_<territory>.<charset>". But all the locales that
doesn't have this format were not installable (such as "fr_FR" or
"fr_FR@euro").
Also, if an invalid locales was provided, the module kept sending a
"changed" status.

Now :
 * if the user provides an invalid locales, the module failed. Locales
   are verified using /etc/locale.gen or /usr/share/i18n/SUPPORTED if
   Ubuntu
 * Every types of valid locales are now supported.
 * The locale module was not working on Archlinux, as there's no space
   between the "#" and the locale. This is now supported. Credits goes
   to danderson189, this is his code.

This module was tested on debian jessie, ubuntu 14 LTS and last
Archlinux.
2016-12-08 11:32:26 -05:00
Brian Coca
1b10058475 changed to make name primary over user, as examples and keep consistent 2016-12-08 11:32:26 -05:00
Kevin Carter
798f89c2e5 Updated volume create methods for a more consistent process
The volume create methods were making an assumption on the unit
sizes being presented by the `vgdisplay` and the `lvdisplay`
commands. To correct the assumption the commands will now enforce
a unit size of "g" which will alway convert sives to gigabytes.
This was an issue brought up by @hughsaunders.
2016-12-08 11:32:26 -05:00
Kevin Carter
e5b0c1ced5 Added new module to support LXC containers
The new module will allow users to control LXC containers from ansible.
The module was built for use in LXC >= 1.0 or greater and implements most
of what can be done using the various lxc clients with regards to running
containers. This first module is geared only at managing lxc containers.

The module provides:
  build containers
  destroy containers
  archive containers
  info from a single container
  start / stop / restart containers
  run commands within containers
  add/modify lxc config for a container
  supports backends including LVM
2016-12-08 11:32:26 -05:00
Brian Coca
5601a88d71 fixed missing , 2016-12-08 11:32:26 -05:00
SkaveRat
6ca4925618 Fix missing restart method
Script was missing the restart command
2016-12-08 11:32:26 -05:00
Brian Coca
4fb47d443b fixed logentries 2016-12-08 11:32:26 -05:00
Kai de Haan
36fa3ccf6c svc: Ensure python 2.5 compatibility
* eg. debian lenny
2016-12-08 11:32:26 -05:00
Marcus
21a03152dc Add support for mirror_only parameter to cpanm module 2016-12-08 11:32:26 -05:00
Brian Coca
01a30bf2b5 Revert "Add listsnapshots property to zfs" 2016-12-08 11:32:26 -05:00
Peter Oliver
c90eba7dcf Add another example. 2016-12-08 11:32:26 -05:00
Peter Oliver
21a3fd5b20 Fix idempotency when removing packages.
If the package is already not present, then we have nothing to do.
2016-12-08 11:32:25 -05:00
Peter Oliver
defdc7c44b Tweak documentation. 2016-12-08 11:32:25 -05:00
Peter Oliver
5c1c2c5c1a Try to fix up commas in version numbers. 2016-12-08 11:32:25 -05:00
Peter Oliver
a300ec9d3b Add missing boilerplate. 2016-12-08 11:32:25 -05:00
Peter Oliver
1faee38eac Add Solaris 11 package management
- Module pkg5 handles installing and uninstalling packages.
- Module pkg5_publisher manages repository configuration.
2016-12-08 11:32:25 -05:00
Jens Depuydt
4a967e7a1c added postgresql_lang.py 2016-12-08 11:32:25 -05:00
Simon Aquino
f9b85306f0 Facter module should return custom facts
The ansible facter module should also return puppet custom facts by
default.
2016-12-08 11:32:25 -05:00
Brian Coca
f5a1196cc7 now properly checks that link is suplied before trying to use it should fix #46 2016-12-08 11:32:25 -05:00
Brian Coca
f319bdbfa4 minor fixes to logentries 2016-12-08 11:32:25 -05:00
Ruben Van den Bossche
1943ee7311 Added support for --name and --type arguments when following a new log 2016-12-08 11:32:25 -05:00
Kelley Reynolds
3d686ef07d Add listsnapshots property to zfs 2016-12-08 11:32:25 -05:00
Brian Coca
834f71a4a6 daemontools module 2016-12-08 11:32:25 -05:00
Brian Coca
60459795b0 added version to patch and remote_src to allow for controlling if src is on master or target 2016-12-08 11:32:25 -05:00
Jakub Jirutka
8383c1c8d3 Add new module "patch" 2016-12-08 11:32:25 -05:00
James Barwell
ce349b6c3d Fix argument parsing to module constructor
- Change to remove kwargs in a97d1016dc
  did not remove arguments passed in to the constructor.
2016-12-08 11:32:25 -05:00
Matthew Pherigo
11a68b4cad Make $BATCH=yes the default, remove module option 2016-12-08 11:32:25 -05:00
Matthew Pherigo
5664da4c63 pkgng: add 'batch' parameter
Some packages attempt to prompt the user for certain settings during
installation. Thus, this parameter sets the environment variable
$BATCH to 'yes', which forces package installation scripts to accept
default values for these interactive prompts. This should work for all
prompts that have a default value and aren't implemented through a
custom script (as this variable is built into the ports/package system).

FIXME: Package install should fail if it prompts and batch isn't set;
currently, the install hangs indefinitely.
TODO: Allow user to specify the answers to certain prompts.

I (github.com/mwpher) have NOT tested this with any packages besides
bsdstats. It's a small improvement, but not a complete answer to all
the complexities of package installation.
2016-12-08 11:32:24 -05:00
Andrew Udvare
a59770e02d Add support for emerge's --getbinpkg and --usepkgoonly 2016-12-08 11:32:24 -05:00
Daniel Newport
438a5a730e use state=latest to ensure the latest version is installed. mimics functionality of the apt and yum modules. 2016-12-08 11:32:24 -05:00
Daniel Newport
3e7ab59eb4 fix pacman upgrade bug 2016-12-08 11:32:24 -05:00
Jonathan Mainguy
4fb54a068f Addes login_port feature, similiar to how mysql_db.py works 2016-12-08 11:32:24 -05:00
Julien Pepy
de442415a0 Fix composer module checkmode and change detection 2016-12-08 11:32:24 -05:00
Peter Tan
e12f05ad48 Do not check for the image before calling gce.ex_create_image() or gce.ex_delete_image(), instead catching the ResourceExistsError or ResourceNotFoundError respectively. 2016-12-08 11:32:24 -05:00
Peter Tan
35a4212b5f Address review comments from @sivel and @erjohnso 2016-12-08 11:32:24 -05:00
Peter Tan
42fbeda997 Add gce_img module for utilizing GCE image resources 2016-12-08 11:32:24 -05:00
Toshio Kuratomi
8c63ebcf5e Move dnf and bower plugins to proper subdirs 2016-12-08 11:32:24 -05:00
Toshio Kuratomi
3876df5911 Make documentation of urpmi module force parameter clearer 2016-12-08 11:32:24 -05:00
Toshio Kuratomi
2a6b66053d Reverse the default value of the bzr module force flags 2016-12-08 11:32:24 -05:00
Hiroshi Umehara
6c6b9d2b4d Generalize locale name normalization 2016-12-08 11:32:24 -05:00
Hiroshi Umehara
0ac3592b92 Add EUC-JP locale name normalization
The function normalizes checks for UTF-8, but the same issue exists for
other locales as well.  This fix adds normalization for EUC-JP, a Japanese
locale.
2016-12-08 11:32:24 -05:00
Rob White
e6eb7d47eb Keep 'process' lowercase to protect against upstream changes 2016-12-08 11:32:24 -05:00
Rob White
ef8ca7c063 Changed status() to be case-sensitive of process 2016-12-08 11:32:24 -05:00
Giovanni Tirloni
ccd3044ea5 Fix dangerous use of empty list as default arg (mutable) 2016-12-08 11:32:24 -05:00
Toshio Kuratomi
bc5d5b1be1 Fix typo causing SyntaxError (missing colon) 2016-12-08 11:32:23 -05:00
Anders Ingemann
465d0483eb Clear rabbitmq_user pw when none is specified 2016-12-08 11:32:23 -05:00
Toshio Kuratomi
7941681591 Fix documentation in zypper_repository 2016-12-08 11:32:23 -05:00
Justin Lecher
1f0b0ad3cd Keep default behaviour for refresh
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-08 11:32:23 -05:00
Justin Lecher
90f5e1925e Allow disabling of autorefresh for zypper repositories
In case of release repositories or other special cases you might not
need the autorefreshing of the repos. This patch adds a configure
option instead of hard enabling this.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-08 11:32:23 -05:00
Pierre-Louis Bonicoli
0df24a61c5 remove unused variable 2016-12-08 11:32:23 -05:00
Pierre-Louis Bonicoli
993da476a0 Avoid to use the builtin 'echo'
By default, the interpretation of escape characters could be disabled (bash)
or enabled (dash).
2016-12-08 11:32:23 -05:00
Alexander Gubin
99bcf18410 Fix lvol: Find LVM commands in PATH env 2016-12-08 11:32:23 -05:00
Toshio Kuratomi
389c6e7b5e Allow 0 to be specified 2016-12-08 11:32:23 -05:00
Stanislav Antic
d881a01fec Fixes #155 2016-12-08 11:32:23 -05:00
Bert Mertens
94bd5ec6d8 Fix getent behaviour with fail_key=False 2016-12-08 11:32:23 -05:00
Toshio Kuratomi
51c62c78b9 Fixes for docs building 2016-12-08 11:32:23 -05:00
Brian Coca
59f3bf6300 fixed doc bug 2016-12-08 11:32:23 -05:00
John Barker
c8590ec612 Add a note about debconf passwords always being recorded as changed 2016-12-08 11:32:23 -05:00
nmeum
883cd22821 Make sure portage doesn't ask for confirmation
If EMERGE_DEFAULT_OPTS in make.conf(5) contains '--ask' then the portage
module doesn't work correctly, this commit fixes that
2016-12-08 11:32:23 -05:00
Jeroen Thora
74d6c7fd06 Fixed small typo in zabbix group docs 2016-12-08 11:32:22 -05:00
net
64b53937ee package file 2016-12-08 11:32:22 -05:00
Nikolai Lifanov
56c5507c21 fix at.py module on non-glibc systems 2016-12-08 11:32:22 -05:00
Alexander Gubin
117ae098ef zypper: Fix gpg check option for state=latest. --no-gpg-checks is used in new and old zypper versions 2016-12-08 11:32:22 -05:00
Cosmo Petrich
9bcf232880 Remove default from 'permanent' and 'state' docs
These fields are both required, and thus do not actually have defaults.
2016-12-08 11:32:22 -05:00
Stein Inge Morisbak
b685cc32c0 Removed import of json. It is already imported in the common module. 2016-12-08 11:32:22 -05:00
Stein Inge Morisbak
5b56faeed2 Fall back to simplejson if ImportError on json 2016-12-08 11:32:22 -05:00
Brian Coca
701a85e7fc revamp of gluster volume management also implemented deleting a volume 2016-12-08 11:32:22 -05:00
Michael Scherer
3dab019dca Add a new option immediate= to immediately apply a permanent change
Currently, either you apply the change in the configuration
of firewalld ( without permanent=True ), or you apply it live.
I most of the time want to do the 2 at the same time, ie open the
port ( so I can use the service ) and make sure it stay open on reboot.
2016-12-08 11:32:22 -05:00
Jeroen Thora
26ae02b2f5 Small typo fix 2016-12-08 11:32:22 -05:00
Brian Coca
baf514957c moved version added 2016-12-08 11:32:22 -05:00
Brian Coca
3ef53f92eb minor cleanup, removing unused/redundant code, cleaned some comments, slight reformating in class to remove kwargs 2016-12-08 11:32:22 -05:00
Ravi Bhure
7e83da3480 Recorded the changes suggested by brian coca 2016-12-08 11:32:22 -05:00
Ravi Bhure
e0f0cc4049 used ansible conventions to use trigered action ==> state, now only two states are available enabled/disabled_ get weight for backend server, is default behavior for both state, supports set weight while enable server in lb pool 2016-12-08 11:32:22 -05:00
Ravi Bhure
a1c5149de3 Instead of action [enable_server,disable_server] we prefer to use state [enabled,disabled] [FIXED] misplaced the checkmode support (#L146) [FIXED] no need to check if host is not set as the argument spec (#L138), it should already complain about that [FIXED] 2016-12-08 11:32:22 -05:00
Ravi Bhure
6edde18f90 updated version 1.9 and moved haproxy module to network category 2016-12-08 11:32:22 -05:00
Ravi Bhure
594b5ce64b Added module haproxy, to handle enable/disable backend server with shutdown_sessions feature in haproxy. 2016-12-08 11:32:21 -05:00
Brian Coca
9057295065 changed to use ansible standard 'name' instead of 'package' 2016-12-08 11:32:21 -05:00
Brian Coca
766125d585 minor doc tweaks to snmp_facts 2016-12-08 11:32:21 -05:00
Toshio Kuratomi
79bd23da3e Fixes to documentation 2016-12-08 11:32:21 -05:00
ogenstad
61cf02b727 1.9 2016-12-08 11:32:21 -05:00
ogenstad
779614e9cf added_version -> 1.9 and file move 2016-12-08 11:32:21 -05:00
ogenstad
ba456c0020 Snmp module for Ansible 2016-12-08 11:32:21 -05:00
nate-kingsley
854e086efc Adding Uptime Robot Module
Added uptime robot module. This currently has the ability to start or
pause existing monitors. The ability to create or delete is forthcoming.
2016-12-08 11:32:21 -05:00
Taneli Leppä
36fb7e0529 Added .py extension to glusterfs module. 2016-12-08 11:32:21 -05:00
Taneli Leppa
71172bd762 Added GlusterFS module. 2016-12-08 11:32:21 -05:00
Peter Mounce
71d2faab18 Windows package management with Chocolatey 2016-12-08 11:32:21 -05:00
Peter Mounce
f408ac2d82 Add module to install windows updates
Supports specifying which category to install all updates from.
NEEDS: `choco install PSWindowsUpdate` beforehand - does not attempt to install it (or detect it's missing, yet)
PSWindowsUpdate: http://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc#content
2016-12-08 11:32:21 -05:00
Cristian Van Ee
e7146ed265 Fixed cachedir function 2016-12-08 11:32:21 -05:00
Cristian van Ee
b0a1baa981 Created dnf package manager module, based on the yum package manager module. 2016-12-08 11:32:21 -05:00
Ben Mather
1e98302cb8 mark all actions as private 2016-12-08 11:32:21 -05:00
Ben Mather
1a30d3fcfd mark list as private instead of shadowing 2016-12-08 11:32:21 -05:00
Ben Mather
eebde78ded make it possible to configure the content type of a github webhook 2016-12-08 11:32:20 -05:00
Ben Mather
06559cad3c rename list to list_ to avoid shadowing in github_hooks module
The definition was leaking into ansible.module_utils.basic and causing
type checking to fail when running module as script.  Not entirely clear
why this should be the case.
2016-12-08 11:32:20 -05:00
Aurélien Bompard
27afdc9566 Module alternatives: support RedHat-based OSes
RedHat-based OSes have a version of update-alternatives which comes from
the chkconfig package and does not support the --query parameter. Work
around that.
2016-12-08 11:32:20 -05:00
Aurélien Bompard
2d5c2dabe8 Module alternatives: support check mode 2016-12-08 11:32:20 -05:00
Michael Warkentin
7925c0a453 Add bower module 2016-12-08 11:32:20 -05:00
Steve
2cb1176bc2 New crypttab module for editing Linux /etc/crypttab file 2016-12-08 11:32:20 -05:00
René Moser
cc666194ac zabbix_group: new module
Add or remove a host group to Zabbix.

Signed-off-by: René Moser <mail@renemoser.net>
2016-12-08 11:32:20 -05:00
Toshio Kuratomi
cdb9c1b1c4 Use the python db api to quote mysql values 2016-12-08 11:32:20 -05:00
Brian Coca
ff66d56d4a corrected and made better docs for getent 2016-12-08 11:32:20 -05:00
Joseph Tate
5faecb76ae Actually what we need is to import the urls utils 2016-12-08 11:32:20 -05:00
Joseph Tate
b75c10d5ea If you're going to use urllib, you'd better import it 2016-12-08 11:32:20 -05:00
Toby Evans
7685d60c58 Update the webhook url
This change fixes the 404 seen with the current version.

fixes #100
2016-12-08 11:32:20 -05:00
Michael Warkentin
45f2a6734d Fix typo: authenicate -> authenticate 2016-12-08 11:32:20 -05:00
Artem Chernikov
b4c6b81619 Fixing SuSE to SUSE as latter is the right one since some time 2016-12-08 11:32:20 -05:00
Toshio Kuratomi
ae51f28420 Move from md5 to sha1 to work on fips-140 enabled systems 2016-12-08 11:32:20 -05:00
Filipe Niero Felisbino
d740265e13 Replace dev_string to dev_list 2016-12-08 11:32:20 -05:00
Michael DeHaan
cf622a7299 Categorize some modules. 2016-12-08 11:32:19 -05:00
Michael DeHaan
7d6ceb4f06 Reorganization. 2016-12-08 11:32:19 -05:00
Michael DeHaan
ee87304fb8 Fix rename error. 2016-12-08 11:32:19 -05:00
Michael DeHaan
55b41340fc Module reorg 2016-12-08 11:32:19 -05:00
anatoly techtonik
2a67586432 README.md: Reference module development guide (fixes #10) 2016-12-08 11:32:19 -05:00
Sergei Antipov
e60d6e413a Added missed importing 2016-12-08 11:32:19 -05:00
Eric Hanchrow
aff36f5a97 Clarify doc for cpan module
... note that you can pass names that include a precise version number.
2016-12-08 11:32:19 -05:00
Chris West
4176c3b500 Enable "ufw default allow routed"
* The policy is shown in `status verbose`, so all the check mode stuff should keep working.
 * `--dry-run` works as expected.
 * No idea whether it's legal as an argument to `interface`
2016-12-08 11:32:19 -05:00
Boris Manojlovic
b1ec3fd57e fixed zypper.py and zypper_repository.py for SLE10 platform 2016-12-08 11:32:19 -05:00
anatoly techtonik
cb70fbc9d1 composer: Fix changed status that always returns False
re.match in has_changed function never worked properly, because match
requires searched sequence to be present exactly at a start of processed
string, which is not the case here.
2016-12-08 11:32:19 -05:00
Mikolaj Chwalisz
5e9f16b206 opkg: fix package state detection 2016-12-08 11:32:19 -05:00
Paul Nicholson
8875d45632 Add missing __init__.py files for find_package() to work 2016-12-08 11:32:19 -05:00
Baptiste Mispelon
7a60427749 Fixed typo in locale_gen documentation. 2016-12-08 11:32:19 -05:00
Philip Misiowiec
85c15e5303 Added version 2016-12-08 11:32:19 -05:00
Philip Misiowiec
7db849397c Ability to enable SSL when creating MongoDB users 2016-12-08 11:32:19 -05:00
jravetch
2a8fc63645 mkfs.xfs uses -f instead of -F flag
mkfs.xfs uses the -f instead of -F flag to force creating a filesystem on a devices that have an existing filesystem
2016-12-08 11:32:18 -05:00
kustodian
e9f98c0efc mysql_replication should not connect to the 'mysql' database
All the actions by the mysql_replication plugin can be done by connecting to the NULL database. There is no need to connect to the 'mysql' db, since there are permissions problems when connecting to remote hosts, e.g. when you want to query "SHOW MASTER STATUS" on a remote host.
2016-12-08 11:32:18 -05:00
René Moser
e9eb19a7f2 zabbix_maintenance: set state to be present by default
Signed-off-by: René Moser <mail@renemoser.net>
2016-12-08 11:32:18 -05:00
Patrik Lundin
66cb7f1a37 openbsd_pkg: revert "changed" simplification.
module.exit_json() does not like when the "changed" variable contains a
match object:

TypeError: <_sre.SRE_Match object at 0x81e2ae58> is not JSON serializable
2016-12-08 11:32:18 -05:00
Patrik Lundin
98dcb3a006 Simplify logic by using required=True. 2016-12-08 11:32:18 -05:00
James Cammarata
e7405643e1 Refactor openbsd package upgrade change to work more like yum/apt 2016-12-08 11:32:18 -05:00
Patrik Lundin
6aaf5eb1d6 openbsd_pkg: add upgrade argument.
Running the module with the argument "upgrade=yes" invokes an upgrade of
all installed packages.

While here clean up some comments.

Functionality requested by @qbit.
2016-12-08 11:32:18 -05:00
Michael DeHaan
d2110d7502 Update README.md 2016-12-08 11:32:18 -05:00
Michael DeHaan
7ba58f93a0 package files 2016-12-08 11:32:18 -05:00
Michael DeHaan
5879c503bb File extensions! 2016-12-08 11:32:18 -05:00
James Cammarata
d4b117843a Copying snapshot of extras modules 2016-12-08 11:32:07 -05:00
James Cammarata
8afa090417 Resolving differences in core modules post-merge 2016-12-08 11:25:36 -05:00
James Cammarata
95d59b61eb Removing unnecessary files before repo merge 2016-12-08 11:25:36 -05:00
Toshio Kuratomi
7319104552 Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
Adam Chainz
46ca2b8bcd Cloudformation - remove dead invoke_with_throttling_retries function (#5690)
Unused since f040d63403.
2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
5edbbabe0b Call main in conditional way - packaging (#5826) 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
17c80f6bbb Call main in conditional way - utilities (#5827) 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
2e34bad425 Call main in conditional way - files (#5828) 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
8855b3274c Call main in conditional way - databases 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
21bd86ef1d Call main in conditional way - cloud/rackspace 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
c8fd24ee04 Call main in conditional way - cloud/amazon 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
1c3aeb5cb7 Call main in conditional way - source_control 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
a6cd0272fb Call main in conditional way - system 2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
4d2a3229d3 Call main in conditional way - web_infrastructure 2016-12-08 11:25:35 -05:00
Toshio Kuratomi
42a5b1977f Do not use the fstab parameter on openbsd for mounting (#5805)
* Do not use the fstab parameter on openbsd for mounting

OpenBSD's mount command doesn't allow selecting which fstab file to use.
So if we're operating on the live filesystem (mount or remount) return
an error if the user specified an fstab file.

Fixes #5591

* Fix the logic inversion (thanks to @landryb)
2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
a5a15acd55 Native YAML - files/file.py (#5799)
* Native YAML - files/file.py

* Rollaback part of the change as for request
2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
8b7db84e91 Native YAML - cloud/google/gce.py (#5800) 2016-12-08 11:25:34 -05:00
Fabio Alessandro Locati
2b0bdd45e8 Unquote urls in YAML - windows (#5798) 2016-12-08 11:25:34 -05:00
Fabio Alessandro Locati
ca047c3881 Unquote urls in YAML - cloud (#5797) 2016-12-08 11:25:34 -05:00
Fabio Alessandro Locati
eb54b80a92 Unquote urls in YAML - system (#5796) 2016-12-08 11:25:34 -05:00
Fabio Alessandro Locati
18d022d808 Unquote urls in YAML - source_control (#5795) 2016-12-08 11:25:34 -05:00
Fabio Alessandro Locati
013be6fa1c Unquote urls in YAML - web_infrastructure (#5794) 2016-12-08 11:25:34 -05:00
Fabio Alessandro Locati
8ae7d2dcc4 Unquote urls in YAML - packaging (#5793) 2016-12-08 11:25:34 -05:00
Fabio Alessandro Locati
e49667d94c Unquote urls in YAML - network (#5792) 2016-12-08 11:25:34 -05:00
Evan Kaufman
580c74140a Fix for python 2.4 compatibility (#5693)
Fixes #5692
2016-12-08 11:25:34 -05:00
Asara
dddf810a19 Fixed typo in docker_image.py docs (#5764) 2016-12-08 11:25:34 -05:00
Brian Coca
e3a43c0d4b made fact_path actual path (#5789) 2016-12-08 11:25:34 -05:00
Ted Timmons
367f675420 use 'six' for urlparse compatability (#5777)
* use 'six' for urlparse compatability
2016-12-08 11:25:34 -05:00
John R Barker
b05df29978 Missing space between key:value (#5785) 2016-12-08 11:25:34 -05:00
René Moser
507559dba5 doc: network: fix syntax errors in examples (#5780) 2016-12-08 11:25:34 -05:00
Rob White
3f81a65e53 Fail if specifying an ENI as device but in_vpc is not true 2016-12-08 11:25:34 -05:00
Dustin C. Hatch
b49aa70c29 systemd: Start inactive units for reload/restart
The `service` module starts services that are not running when
`action=restarted` or `action=reloaded`, which is especially convenient
for initial deployments because it eliminates an extraneous operation
for when the service starts for the first time. This commit adjusts the
behavior of the `systemd` module to match.
2016-12-08 11:25:33 -05:00
Matt Davis
ce0412aa85 Fix test failures in win_command/win_shell on Powershell 3
Switched to use Exit-Json to avoid JSON escaping bugs in ConvertTo-Json formatter without -Compress option.
2016-12-08 11:25:33 -05:00
Wouter Oosterveld
61060f4b5f mysql_user: fix user_mod on MySQL(-like) 5.7+ (Fixes #3003) (#5388) 2016-12-08 11:25:33 -05:00
ekultails
0358919db8 add correct SELinux file context for crontabs (#4511) (#4595) 2016-12-08 11:25:33 -05:00
David Wittman
cc334a078b Set IdentitiesOnly=yes when using key_file (#5682)
Sets the SSH option `IdentitiesOnly=yes` in the SSH wrapper when a
`key_file` is provided to the git module. This option ensures that
the provided key is used. Otherwise, the system's ssh-agent could
provide undesired identities when connecting.

From ssh_config(5):

> Specifies that ssh(1) should only use the authentication identity and
> certificate files explicitly configured in the ssh_config files or
> passed on the ssh(1) command-line, even if ssh-agent(1) or a
> PKCS11Provider offers more identities. The argument to this keyword
> must be “yes” or “no”. This option is intended for situations where
> ssh-agent offers many different identities. The default is “no”.
2016-12-08 11:25:33 -05:00
Matt Clay
86d53db3e4 Update async_wrapper.py to remove own temp dir. (#5719) 2016-12-08 11:25:33 -05:00
jctanner
d41b4e3802 Use the the new features of fail_if_missing for checkmode (#5750) 2016-12-08 11:25:33 -05:00
Brian Coca
d2fec9d259 added docs for use option
(cherry picked from commit ad5cb0f0d7231ff74d7918faa26091ba710c4709)
2016-12-08 11:25:33 -05:00
Toshio Kuratomi
b95f483b8d Force BSDs to use umount/mount instead of trying to use remount. (#5715)
* Force BSDs to use umount/mount instead of trying to use remount.

Fixes #5591

* Initialize out and err
2016-12-08 11:25:33 -05:00
Brian Coca
da9adccb02 systemctl show rc changes across versions
to avoid different errors across versions, ignore rc in favor of
found/notfound

fixes #5710
2016-12-08 11:25:33 -05:00
Jiri Tyr
b264f8c1cd Fall back if mountinfo reading failed (fixing #5603) 2016-12-08 11:25:33 -05:00
Matt Clay
82e74668a6 Support script interpreters in async_wrapper. (#5703) 2016-12-08 11:25:33 -05:00
Andrea Tartaglia
48d47a57d5 ported iterkeys to py3 syntax (#5657)
* ported iterkeys to py3 syntax

Addresses ansible/ansible#18507

* Use ansible.module_utils.six.moves iterkeys instead of dict.keys()

* Removed 'iterkeys'
2016-12-08 11:25:33 -05:00
Sam Doran
c0c26f83a8 Examples syntax batch7 (#5624)
* Change example syntax on nxos_feature module

* Change example syntax on nxos_hsrp module

* Change example syntax on nxos_igmp module

* Change example syntax on nxos_interface module

* Change example syntax on nxos_interface_ospf module

* Change example syntax on nxos_ip_interface module

* Change example syntax on nxos_ping module

* Change example syntax on nxos_switchport module

* Change example syntax on nxos_vlan module

* Change example syntax on nxos_vrf module

* Change example syntax on nxos_vrf_interface module

* Change example syntax on nxos_vrrp module

* Change example syntax on meta module

* Change example syntax on set_fact module

* Change example syntax on win_copy module

* Change example syntax on win_file module

* Change example syntax on win_get_url module

Remove escaping of \ characeter in Windows paths since it's no longer required for single quoted or unquoted values when using multi-line YAML syntax.

* Change example syntax on win_lineinfile module

* Change example syntax on win_msi module

* Change example syntax on win_stat module

* Remove nxos_bgp example from nxos_igmp module

* Mark examples as regexp to avoid syntax error

* Cleanup win_copy.py examples

* Cleanup win_file.py examples

* Remove quotes in win_get_url.py examples

* Cleanup quotes and languare in win_lineinfile.py

* Cleanup examples in win_group.py

* Cleanup examples in win_service.py

* Don't use : in documentation because it breaks the YAML syntax check

* Cleanup win_copy.py examples

* Cleanup win_copy.py examples

* Minor change to fix test failure

* Use single quotes
2016-12-08 11:25:33 -05:00
Sam Doran
bf184b1a92 vyos_command Document ANSIBLE_VYOS_TERMINAL_LENGTH (#5676)
* Update documentation for vyos_command

Add information on new environment variable added in #18546.
Add note on command that should not be run via Ansible.

* White space changes

Two spaces after period.
2016-12-08 11:25:33 -05:00
Kevin Kirsche
1fe0bd33f3 Remove set from junos_facts as it errors out (#5670)
Fix #5636 per @ganeshnalawade
2016-12-08 11:25:33 -05:00
Ganesh Nalawade
d39ae36ab1 Fix 5646 junos_config issue if config format is text (#5658)
If 'src_format' is not mentioned in playbook
and config is in text format a list object is
passed to 'guess_format' function instead
of string, hence TypeError execption is seen.
Fix is to pass string object instead of list.
2016-12-08 11:25:32 -05:00
Brian Coca
2ba5967673 fix yaml format, clarify docs 2016-12-08 11:25:32 -05:00
Brian Coca
b278fafec8 updated desc 2016-12-08 11:25:32 -05:00
Orion Poplawski
ade7b47f28 Be able to find all contents of a directory (#3711) 2016-12-08 11:25:32 -05:00
tedder
78f8ef267c update formatted lines to use named identifiers 2016-12-08 11:25:32 -05:00
Dag Wieers
c22e383836 Ensure proper error when fetch_url returns status -1
When using a file:// or ftp:// URL the normal provisions that a non-200 status code means error have been disabled.
But the common error status -1 from fetch_url is not properly returning an error message.
This fix ensures that if the status code returns -1, we return a proper error message.

This fixes #3563
2016-12-08 11:25:32 -05:00
Rob Cutmore
6a3969ca6b Git: indicate if remote url was changed or not (#5677) 2016-12-08 11:25:32 -05:00
jctanner
10f0d3ca95 Set b_src to abspath of b_path so that symlinks work again. (#5678)
Fixes #5653
2016-12-08 11:25:32 -05:00
John R Barker
b1c6b9272f win_msi - Don't list choices twice (#5684)
* win_msi - Dont list choices twise

http://docs.ansible.com/ansible/win_msi_module.html shows

Choices:
True
True
False
False

As the yes/no are expanded to true/false by the docs generation

* Update win_msi.py
2016-12-08 11:25:32 -05:00
Toshio Kuratomi
ef3699e277 Fix for call to umount() in remount() 2016-12-08 11:25:32 -05:00
Brian Coca
1d8be78963 try remount but fallback to unmount + mount (#2445)
* allow mount to try remount

falls back to unmount/mount

* fixed fstab handling and switched to ismount

custom function deals with bind mounts unlike built in

* un ** args

* last ** args
2016-12-08 11:25:32 -05:00
tedder
c77f7af765 add .format indexes for 2.6 compatability
Fixes #5551; the "".format() style needs to have `{0}` instead of the implied `{}` version for compatability with 2.6.
2016-12-08 11:25:32 -05:00
zaiusdr
74b32d9ec0 Fix wait_for Module to handle socket response as string in Python3
In Python3 socket module returns responses as bytes type. So it's
necessary to convert it to string for the module work correctly.
2016-12-08 11:25:32 -05:00
Kevin Kirsche
4e95ee036e Update pull request template to provide context
This updates the pull request template to provide more context about why specific things may be needed. This helps to make it feel like it is being asked for to help the team rather than arbitrary questions that don't seem applicable, such as command output for a docs change.
2016-12-08 11:25:32 -05:00
Matt Davis
13a9b98565 Prevent handle inheritance from blocking Windows async_wrapper (#5666) 2016-12-08 11:25:32 -05:00
Brian Coca
44c07d7ca8 Several systemd fixes
Allow some operations on missing services
Better sysv handling
Rearranged error reporting
fixed load error catching and order logic
also minor doc/comment updates
added warnings
2016-12-08 11:25:32 -05:00
Peter Sprygada
7079fe41be Revert "ios_mods - added stdout to exception output. Removed to_lines()" (#5663) 2016-12-08 11:25:31 -05:00
Monty Taylor
509846e6d6 Add a few lines about testing (#5662) 2016-12-08 11:25:31 -05:00
Toshio Kuratomi
52698596bc Clarify the comment 2016-12-08 11:25:31 -05:00