Commit graph

1031 commits

Author SHA1 Message Date
David Stygstra
333133144e Use modprobe -r instead of rmmod in modprobe module (#2669)
If any modules that the module being removed depends on are unused, they
will also be removed. Fixes #2140.
2016-09-14 14:32:08 +02:00
Will Thames
1f6f3b72db firewalld should fail nicely when service is stopped (#2871)
Ensure the HAVE_FIREWALLD checks check only for the
presence of the python dependencies, and not the age
of the library or the state of the service, which
are checked later.
2016-09-12 23:57:10 +02:00
Robin Schneider
67a1bebbd3 Use addresses and names reserved for documentation (#2894)
Trying to preserve the meaning of the examples.

Related to: https://github.com/ansible/ansible/issues/17479
2016-09-12 11:27:45 +02:00
Tobias Wolf
061c6517eb Fix one character typo in my previous PR for debconf module (#2899)
Small oops in the previous PR #2530 commit.

Instead of `diff_dict` it slipped through as `diffdict`.

Please merge and sorry.
2016-09-12 10:25:28 +02:00
johanwiren
b88fdde22c Fix share aliases logic (#2862) (#2875)
Fixes #2862
2016-09-08 18:01:27 +02:00
Matt Clay
6a7358b14e Remove stderr=False from calls to exit_json. (#2879) 2016-09-07 15:40:17 -07:00
Tobias Wolf
39972fa697 Add diff mode output to debconf module (#2530)
Support diff such that the previous and current settings are visible
without debug output and just with `--diff` if requested.
2016-09-05 22:06:18 +02:00
Toshio Kuratomi
b576e116f0 Style cleanups:
* Don't use iterkeys
* Don't use wildcard imports
2016-08-31 07:48:10 -07:00
Michael Scherer
a2d3aac8cc Use six for iteration, to make it run on python3 (#2800) 2016-08-31 07:15:38 -07:00
Wong Hoi Sing Edison
9cd681a841 Fix ansible/ansible-modules-extras#1682: add dispersed volume support for gluster_volume (#2708) 2016-08-31 07:34:31 +02:00
afunix
f69d32ec44 gluster_volume module parses out additional hostnames provided by "gluster peer status" command [#1405] (#2811) 2016-08-31 07:27:07 +02:00
Mike Liu
582e36aef9 Iptables enhancements (#2789)
* Add the flush parameter.

When specified the flush parameter indicates that this module should remove all
rules from the specified table. If no table parameter is specified then the
default filter table is flushed.

* Add support for setting chain policies.

The module supports setting the policy of a given chain and table to the
following target values, ACCEPT, DROP, QUEUE, and RETURN. This parameter ignores
all other unrelated parameters.

* Fix pep8 issues.

* Fix missing quotation.

* Make 'flush' and 'policy' parameters mutually exclusive.

This combination is not supported by the wrapped iptables command. 'flush' and
'policy' however, can both take the 'chain' argument.
2016-08-30 16:16:10 +02:00
Toshio Kuratomi
6f1753cccd Moved the atomic modules to cloud/atomic. (#2784)
Similar category to docker and lxd
2016-08-26 07:14:06 -04:00
ovcharenko
8485b39ab3 [FIX] ufw fails asking for a direction for rules without an interface specified [#2758] (#2759) 2016-08-23 10:14:22 +02:00
Saravanan K R
aacbb97aa6 Added modules to manage Atomic Host Platform (host and image) (#1902)
* Added modules to manage Atomic Host Platform (host and image)

* Fixed review comments

* Fixed requirements and locale setting
2016-08-18 08:05:48 -07:00
Shinichi TAMURA
5fbb0de36f Allow value to be bool where 'yes'/'no' are in choices (#2593)
* Changed type of 'details' argument to bool on ecs_service_facts module.

* Changed type of 'autostart' argument to bool on virt_* modules.

* Changed types of 'autoconnect' and 'stp' argument to bool on nmcli module.
('create_connection_bridge(self)' and 'modify_connection_bridge(self)' are not implemented yet?)

* Added conversion of 'value' argument when 'vtype' is boolean on debconf module.
2016-08-17 07:32:49 -07:00
ovcharenko
85aec2e07a [FIX] "Invalid interface clause" error in UFW module (#2559) (#2666)
Fixes GH-2559
2016-08-16 15:09:17 +02:00
Onni Hakala
61d5fe148c Added example to add a port range (#2712)
I tried to google for this a bit and then figured out how it actually works.
2016-08-12 08:01:01 +02:00
Adam Števko
eaa71f51d6 Add support for managing OpenZFS pools (#2642) 2016-08-08 11:49:18 -04:00
Dan Keder
ebb8d73d57 seport: fix a bug when SELinux port definition was already there (#2009) (#2694) 2016-08-08 08:49:38 -04:00
ovcharenko
31a027e2cd [FIX] Bug report: ufw: interface option causes an error (1.9.4) (#1491) (#2668) 2016-08-06 14:39:03 +02:00
Linus Unnebäck
344dcc95c0 iptables: remove duplicated documentation (#2673)
Fixes #1527
2016-08-05 09:26:30 -04:00
Adrian Likins
28bb69bd41 Use %s string formatting in system/timezone.py (#2632)
This module was using python 2.6 string .format().
To enable the module to run on python2.4, replace
the .format formatting with '%s' based string formatting.

There was also a use of a 'filename' variable in the
NosystemdTimezone.get() method that was never set.

An import of 'os' was also added for clarity.
2016-07-28 17:02:00 -04:00
Ruslan Kiianchuk
cd2dbed79c Add support for reiserfs (#2551)
* Add support for reiserfs

Create commands mapping for Reiserfs tools.
2016-07-28 11:52:32 -04:00
Aaron Brady
3533ae2647 Add active and inactive states to the lvol module (#1974)
* Add `active` and `inactive` states to the lvol module

* Honor the previous state of the changed variable

* Move active/inactive states to active boolean parameter

* Bump version_added to make Travis happy

* Avoid bailing early is size isn't specified

* Add invocation examples

* Move "no size" up for code clarity
2016-07-28 11:31:51 -04:00
Sander Dijkhuis
669f99d841 Fix reference in known_hosts doc (#2563)
The format is described in sshd(1), not ssh(1).
2016-07-25 21:41:41 +02:00
Sudheer Satyanarayana
2078c4b4da which not who (#2557)
minor text fix
2016-07-13 10:26:13 -04:00
Nate Prewitt
a70cfeed15 removing | from description so docs render properly in RTD (#2533) 2016-07-09 20:30:56 +02:00
Rene Moser
f7b18a331b alternatives: add missing version_added and default doc
Also see #1175
2016-07-09 09:11:24 +02:00
Zack Lalanne
4756c71496 Fixed #632 added alternatives priority (#1175) 2016-07-09 09:08:44 +02:00
René Moser
bf07cf8d3b fix typo in get_exception(), extends fix #2502 (#2507)
introduced with 9e277aabb0
2016-06-30 10:37:21 -04:00
David Fischer
93540b7269 Fix 'function' has no attribute 'errno' (#2502) 2016-06-30 15:42:14 +02:00
Shota
d25c487ac8 Fix some typos (#2490) 2016-06-27 23:03:56 -04:00
Andrey Arapov
00afca99e5 system: crypttab: fix typo (#2476) 2016-06-25 13:54:42 +02:00
Shinichi TAMURA
ba6aa8b013 Added 'answer' as an alias of 'value' on debconf module (#2464) 2016-06-22 08:53:16 -04:00
Shinichi TAMURA
cb94edd17f Added timezone module (#2414) 2016-06-20 17:34:16 -04:00
Brian Coca
a28d7a00b8 added 'seen' type to debconf 2016-06-20 08:59:10 -04:00
Dag Wieers
e49858b09e sefcontext: New module to manage SELinux file context mappings (semanage fcontext) (#2221)
New SELinux module sefcontext to set SELinux file context mappings

This module implements `semanage fcontext` in an idempotent way.
It supports check-mode and diff-mode.
2016-06-08 11:45:38 -04:00
Hrishikesh Barua
a95a1a2e08 Fix for #2366 removed print statement (#2375) 2016-06-04 23:16:53 +02:00
Toshio Kuratomi
d1174cc8b7 Only import get_exception once in locale_gen.py 2016-06-03 06:25:29 -07:00
Chris Weber
9e277aabb0 Fixed modules/system py files for 2.4 to 3.5 exceptions (#2367) 2016-06-03 06:23:55 -07:00
Elena Washington
3ca06bf1c8 iptables: option to configure Source NAT (#2292)
* Clean up trailing whitespace

* Add `--to-source` option to allow Source NAT (fix for #2291)
2016-05-26 09:51:31 -07:00
Brian Coca
ecee427cbc added note about behaviour change in 2.2 2016-05-23 10:35:03 -04:00
Leo Antunes
d54905ecee Allow multiple keys per host + minor improvements (#716)
* known_hosts: clarify key format in documentation

Add a small clarification to the documentation about the format of the
"key" parameter.
Should make #664 less of a issue for newcomers.

* known_hosts: normalize key entry to simplify input

Keys are normalized before comparing input with present keys. This
should make it easier to deal with some corner cases, such as having a
hashed entry for some host and trying to add it as non-hashed.

* known_hosts: allow multiple entries per host

In order to support multiple key types and allow the installed ssh
version to decide which is more secure, the module now only overwrites
an existing entry in known_hosts if the provided key is of the same
type.
Old keys of different types must be explicitly removed. Setting
state to "absent" and providing no key will remove all entries for the
host.
2016-05-23 10:33:52 -04:00
Brian Coca
29be1310e1 add missing author info 2016-05-20 09:19:23 -04:00
Michael Scherer
c8864c3220 Use a python3 compatible notation for octal (#2238) 2016-05-17 10:33:12 -07:00
Daniel Vigueras
735c1b6219 Add insert support to iptables. (#1180)
Add insert support to iptables.
2016-05-16 16:25:52 -04:00
Adrian Likins
240afc0344 Merge pull request #2146 from ke3vin/interfacezone
Fix the interface handling code to allow immediate changes.  Also fixes switching an interface between zones.
2016-05-16 10:42:17 -04:00
Adrian Likins
ae6b3ac71d Merge pull request #2225 from rusaksoft/iptables-add-icmp-type
Iptables add icmp type
2016-05-16 10:38:26 -04:00
Dag Wieers
7618fd8749 Fix check-mode incorrectly returning changed (#2220)
The lvol module has a different logic in check-mode for knowing when a change is induced. And this logic is *only* based on a size check. However during a normal run, it is the lvreduce or lvextend tool that decides when a change is performed (or when the requested and existing sizes differ). So while in check-mode the module reports a change, in real run-mode it does not in fact changes anything an reports ok.

One solution would be to implement the exact size-comparison logic that is implemented in lvextend and lvreduce, but we opted to use the `--test` option to each command to verify if a change is induced or not. In effect both check-mode and run-mode use the exact same logic and conclusion.
2016-05-14 10:40:49 +02:00