Evan Carter
5cd3217fc8
fixing termination policies for ec2_asg
2016-12-08 11:23:35 -05:00
Evan Carter
e9c04cfdfd
Fixing bug #2058 and adding some backwards compatibility
2016-12-08 11:23:35 -05:00
Brian Coca
99159b3cdd
changed chmod to 2.4 compat
2016-12-08 11:23:35 -05:00
Rob
4f9bb86e58
Add exception handling to iam
2016-12-08 11:23:35 -05:00
wimnat
540061c9fc
Remove unnecessary json.loads
2016-12-08 11:23:35 -05:00
Tom Fotherby
135e7c60de
Fix #1984 - allow load_balancer_port as a variable
2016-12-08 11:23:35 -05:00
Abitha Palaniappan
d26bff8162
Add support for port-id,port-name to nics in os_server
2016-12-08 11:23:35 -05:00
Sam Mingo
75473c0fd0
Update get_url.py
...
Fixed typo with header parameter to get_url in the documentation.
2016-12-08 11:23:35 -05:00
Victor Costan
8d9768c049
Fix indentation in os_server documentation
2016-12-08 11:23:35 -05:00
Yanchek99
ebbd206e86
Fixed typo for instance_tags documentation
2016-12-08 11:23:35 -05:00
David Dyball
cdff62643b
Updated PR based on comments
2016-12-08 11:23:35 -05:00
Taneli Lepp
fb317c72b6
Added option to set multiple ACLs for S3 objects. Also verifies the selected permissions against Boto's canned ACL strings list.
2016-12-08 11:23:35 -05:00
Bret Martin
b1c5b17155
Use general-purpose parameter mutual exclusion code for network_interfaces
2016-12-08 11:23:35 -05:00
Bret Martin
0afa813324
Add alias network_interface
and accept a string for a single ENI
2016-12-08 11:23:35 -05:00
Bret Martin
df8b2d45bc
Add network_interfaces example
2016-12-08 11:23:35 -05:00
Bret Martin
96d8401fb4
Remove aliases specification from documentation since there are none
2016-12-08 11:23:35 -05:00
Brian Coca
281a92bbdd
corrected whitepace
2016-12-08 11:23:34 -05:00
Toshio Kuratomi
b952dff2c1
correct documentation formatting
2016-12-08 11:23:34 -05:00
Victor Costan
2f11d96d49
os_server: nice error when flavor not found
...
When we can't find the VM flavor that the user requests, this change replaces the non-descript stack trace with a clear error message.
2016-12-08 11:23:34 -05:00
Bret Martin
df713192b4
Add network_interfaces parameter to ec2 module to support launch-time ENIs
2016-12-08 11:23:34 -05:00
Toshio Kuratomi
b3262479e9
Fix read-only usage to depend on the docker-py and docker server version
2016-12-08 11:23:34 -05:00
Toshio Kuratomi
13ab511642
We had two separate methods trying to do the same thing but neither one was complete. This merges them so that all of the options get parsed and applied.
2016-12-08 11:23:34 -05:00
Toshio Kuratomi
33f5afa779
Make sure listener ports are ints.
...
May fix #1984
2016-12-08 11:23:34 -05:00
Brian Coca
917b7071d6
partially reverted previous change to deal with systemctl show status not returning errors on missing service Now it looks for not-found key instead of running status which does return error codes when service is present but in diff states. fixes #12216
2016-12-08 11:23:34 -05:00
James Martin
c90bf9df98
Adds sanity check to make sure nics is a list.
2016-12-08 11:23:34 -05:00
Charles Paul
6011381bf0
vm_floppy 2.0 support
2016-12-08 11:23:34 -05:00
Chrrrles Paul
1ae0427d4e
Revert "Add 2.0 docs - Revert "add virtual floppy to VMware guest""
2016-12-08 11:23:34 -05:00
Chrrrles Paul
e8aaed3bbb
Revert "add virtual floppy to VMware guest"
2016-12-08 11:23:34 -05:00
Brian Coca
fd23120d42
check systemctl status before show as show will not return antyhing other than rc=0 even when it fails.
2016-12-08 11:23:34 -05:00
Colin Hutchinson
9d77cef5be
Remove the sample SHA256
...
putting a full sha256 made the width of the table in the generated docs not fit on some screens
2016-12-08 11:23:34 -05:00
Tony Kinsley
79f98bffcf
Adding start and stop actions to os_server_actions
...
Also making the os_server module allow a server in the possible new
states from the os_server_actions changes
2016-12-08 11:23:34 -05:00
Chris Church
9ed0a5a920
* Update core modules to fix strict mode errors. * Also fix creates parameter issue in win_msi as described in https://github.com/ansible/ansible-modules-core/issues/129 , slightly different fix from https://github.com/ansible/ansible-modules-core/pull/1482 * Fix setup.ps1 module issue described in https://github.com/ansible/ansible-modules-core/issues/1927
2016-12-08 11:23:34 -05:00
Bruno Galindro da Costa
6f36629d13
Added termination_policies option
2016-12-08 11:23:33 -05:00
Jérémie Astori
6695cc5c21
Fix physical walk on acl module for Linux
...
`-h` is for BSD [1] while `-P`/`--physical` is for Linux [2].
This commit fixes that option now that acl module is (temporarily)
only supported for Linux.
I will re-add `-h` when fixing BSD support.
[1]: http://www.freebsd.org/cgi/man.cgi?format=html&query=setfacl(1)
[2]: http://linuxcommand.org/man_pages/setfacl1.html
2016-12-08 11:23:33 -05:00
Jérémie Astori
186cc7cb17
Make sure entry is not sent when acl state=query
2016-12-08 11:23:33 -05:00
Jérémie Astori
3568f1cd78
Make sure permission-less entries are accepted when state=absent
...
Also, remove that try condition as, at that stage, no permissions with
other than 2 or 3 fields are sent to the function.
2016-12-08 11:23:33 -05:00
Jérémie Astori
a93445c798
Remove support for d[efault]:
in entry permissions
...
It is not documented in [the Ansible doc page][1] nor
[the BSD setfacl man entry][2] (which means it might not be compatible
with BSD) so removing it does not break the API.
On the other hand, it does not conform with POSIX 1003.1e DRAFT
STANDARD 17 according to the [Linux setfacl man entry][3] so safer to
remove.
Finally, the most important reason: in non POSIX 1003.e mode, only ACL
entries without the permissions field are accepted, so having an
optional field here is very much error-prone.
[1]: http://docs.ansible.com/ansible/acl_module.html
[2]: http://www.freebsd.org/cgi/man.cgi?format=html&query=setfacl(1)
[3]: http://linuxcommand.org/man_pages/setfacl1.html
2016-12-08 11:23:33 -05:00
Toshio Kuratomi
ffbd1efaa7
Remove non-ascii quote char
2016-12-08 11:23:33 -05:00
Rick Mendes
8048c4482a
using single device_id and enabling release on disassociation
2016-12-08 11:23:33 -05:00
Marius Gedminas
b2fc74337a
authorized_key: fix example in documentation
...
'key=' cannot be pointing to a file name; it needs to be the key itself as a string (or a URL).
2016-12-08 11:23:33 -05:00
Tim Rupp
223cac3f39
Add hostname support for Kali linux 2.0
...
This patch allows the hostname module to detect and set the hostname for a
Kali Linux 2.0 installation. Without this patch, the hostname module raises
the following error
hostname module cannot be used on platform Linux (Kali)
Kali is based off of Debian.
2016-12-08 11:23:33 -05:00
Luke
aa9b8b8552
removed hyphens in module name in examples
2016-12-08 11:23:33 -05:00
Timothy Appnel
488749500e
Clarified and cleaned up grammar of error messages.
2016-12-08 11:23:33 -05:00
Timothy Appnel
d811a51744
Fixed call to undefined attribute when RDS module timeouts waiting.
2016-12-08 11:23:33 -05:00
Marius Gedminas
f97d00fbad
user: don't generate SSH keys in check mode
...
Fixes https://github.com/ansible/ansible/issues/11768
Test plan:
- (in a Vagrant VM) created a user 'bob' with no ssh key
- ran the following playbook in check mode:
---
- hosts: trusty
tasks:
- user: name=bob state=present generate_ssh_key=yes
- saw that ansible-playbook reported "changes=1"
- saw that /home/bob/.ssh was still absent
- ran the playbook for real
- saw that /home/bob/.ssh was created
- ran the playbook in check mode again
- saw that ansible-playbook reported no changes
- tried a variation with a different username for a user that didn't
exist: ansible-playbook --check worked correctly (no errors, reported
"changed")
2016-12-08 11:23:33 -05:00
Marius Gedminas
270c2e8bbd
apt: check for "0 upgraded" to be at the beginning of the line
...
Fixes #1678 .
2016-12-08 11:23:33 -05:00
Till Backhaus
e005ef0c36
Delete dead and broken code
2016-12-08 11:23:33 -05:00
Omri Iluz
1c6acc3e8f
No need for .keys on volumes list
...
Since c3f92cca21
changed "volumes" to be a list instead of a dictionary, we don't need (and cannot) .keys when appending to set.
Reported as bug #1957
2016-12-08 11:23:33 -05:00
Simon Li
28c44c554c
Don't fail in check_mode if user exists
...
PR #1651 fixed issue #1515 but the requirement for path to be defined is unecessarily strict. If the user has previously been created a path isn't necessary.
2016-12-08 11:23:33 -05:00
James Cammarata
b9ca912ffe
Fixing region requirement regarding euca clusters
...
Fixes ansible/ansible#11023
2016-12-08 11:23:32 -05:00
nitzmahone
51154a6991
added windows facts ansible_lastboot, ansible_uptime_seconds
...
switched OS object to Get-CimInstance since we need a DateTime object for lastbootuptime
2016-12-08 11:23:32 -05:00
Toshio Kuratomi
1102afed43
Fix for the case where plugins aren't loaded on old RHEL systems
2016-12-08 11:23:32 -05:00
Toshio Kuratomi
77457feda6
Return change results in a dictionary listing the package names.
...
Fix a parsing problem when package names contain a dot.
2016-12-08 11:23:32 -05:00
Brian Richards
c054a058c0
Preventing servers that are deleted and left in the deleted state from being included in the server list
2016-12-08 11:23:32 -05:00
Nithy Renganathan
eb3f28effc
Handle the changed value
2016-12-08 11:23:32 -05:00
Jason Cowley
2c511a9470
Add support for S3 canned permissions. resolves #1939
2016-12-08 11:23:32 -05:00
Sam Yaple
f2c1eeb54c
Actually remove the section we are replacing
2016-12-08 11:23:32 -05:00
Sam Yaple
52d364b74c
Refix bug 1226 after revert
...
This patch properly fixes bug 1226 without introducing a breaking
change to idempotency which was introduced in PR #1358
We can properly assign permissions to databases with a '.' in the name
of the database as well as assign priviliges to all databases as
specified with '*'
2016-12-08 11:23:32 -05:00
Jérémie Astori
1b34f1a7ac
Fix wrong expectation regarding entry format in acl module
2016-12-08 11:23:32 -05:00
Jérémie Astori
6c298e20c0
Fix wrong processing of lines returned by setfacl in test mode
2016-12-08 11:23:32 -05:00
Jérémie Astori
08e8f732c5
Fix minor whitespace issues
2016-12-08 11:23:32 -05:00
Brian Coca
9ad712018c
deal with more failures when apt module fails to instantiate pkg fixes #1499
2016-12-08 11:23:32 -05:00
Mahesh Sawaiker
4b6471d5e7
support creating role only
2016-12-08 11:23:32 -05:00
Ilya Epifanov
cbbf284a74
fixed memory_limit for docker api version >= 1.19
2016-12-08 11:23:32 -05:00
David M. Lee
4cd2fcf917
ec2_vol: Added missing "needs 2.0" doc
...
The ability to find-or-create a volume was added in 2.0. Added note to
the example.
2016-12-08 11:23:32 -05:00
Evan Carter
c1526ff87b
Adding the ability to associate eips with network interfaces
2016-12-08 11:23:31 -05:00
Shobhit Srivastava
316ccb0e65
checking remote_group_id while comparing os_security_group_rule
2016-12-08 11:23:31 -05:00
Sam Yaple
f8bcdffa36
Revert "escapeds changes"
...
While this change doesn't break the creation, it does break
idempotency. This change will convert '*.*' to '`*`.*' which is
functionally the same, however when the user_mod() function looks up
the current privileges with privileges_get() it will read '*.*'
Since '*.*' != '`*`.*' it will go through the process of updating the
privleges always resulting in a 'changed' result.
This reverts commit db9ab9b262
.
2016-12-08 11:23:31 -05:00
Brian Lloyd
e6ffb60855
Windows implementation of lineinfile and related documentation
2016-12-08 11:23:31 -05:00
Jason DeTiberus
3619630972
python 2.4 syntax fix
2016-12-08 11:23:31 -05:00
Jason DeTiberus
8bc90c6a62
Add example for changing consumed subscriptions
2016-12-08 11:23:31 -05:00
Adam Ever-Hadani
8fb52e0a8b
added support for 'collectstatic clear' in django_manage.py
2016-12-08 11:23:31 -05:00
brannon
8691d56f3c
Support creating new VMs by cloning an existing VM. Support setting power state of cloned VMs.
2016-12-08 11:23:31 -05:00
Scot Spinner
0fff871819
one thing missed
2016-12-08 11:23:31 -05:00
Guto Andreollo
81a1579e20
Added the 'hw_interfaces' array, listing the names of all interfaces present on the VM as 'ansible_interfaces' lists the ones seen by the operating system
2016-12-08 11:23:31 -05:00
Andrew Briening
bd531f87bc
Show the exception messages
2016-12-08 11:23:31 -05:00
Matthias Frey
2ed50d5e5b
assemble: add file validation support.
2016-12-08 11:23:31 -05:00
Nikolay Ivanko
33f1da6452
add virtual floppy to VMware guest
2016-12-08 11:23:31 -05:00
Mehul Ved
832f251e90
renamed variables type to cdb_type and version to cdb_version.
2016-12-08 11:23:31 -05:00
HAMSIK Adam
217764ba3c
Rebase start/stop instance pull code
2016-12-08 11:23:31 -05:00
Александр Костырев
ec8a94f748
Fix documentation of authorized_key.py
...
man for sshd http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/sshd.8?query=sshd
says there's no "host" option but "from".
2016-12-08 11:23:31 -05:00
Brian Coca
a1992ad890
updated encoding comment and expanded authors field
2016-12-08 11:23:31 -05:00
Jérémie Astori
288a9d8500
Set version number in recursive option description
2016-12-08 11:23:30 -05:00
Jérémie Astori
17170992c3
Ensure Python 2.4 compatibility and Linux-restricted support
...
- Make build_entry compatible with Python 2.4
- Re-add missing warning/comment that was forgotten while refactoring
- Replace `all()` with a good ol' for-loop Python 2.4 compatibility
- Make a condition check more explicit (when `state` is `query`)
- Make sure this module can only be run with on a Linux distribution
- Add a note about Linux-only support in the documentation
- Set the version in which recursive support was added, 2.0
2016-12-08 11:23:30 -05:00
Brian Coca
c341df2231
updated docs for package
2016-12-08 11:23:30 -05:00
Marius Gedminas
9ab2e9c740
Fix obvious copy-paste error in module docs
2016-12-08 11:23:30 -05:00
Brian Coca
34f8eb0f4c
made continue into a pass (there was no loop)
2016-12-08 11:23:30 -05:00
Brian Coca
686026919e
avoid shlex exceptions in rc parsing (happens with multiline entries) fixes #1898
2016-12-08 11:23:30 -05:00
Michael J. Schultz
c7eb08b217
Return an iterable instead of None
...
By default `.get()` will return `None` on a key that doesn't exist. This
causes a `TypeError` in the `for` loop a few lines down. This change simply
returns an iterable type to avoid the error.
2016-12-08 11:23:30 -05:00
Evgeny Vereshchagin
fe840225fb
Fix service.enable on: Debian 8, Ubuntu 15.04
...
Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751638
See https://github.com/systemd/systemd/issues/937
2016-12-08 11:23:30 -05:00
Austin Hyde
ca512b5def
Always end rc.conf entries with a new line
2016-12-08 11:23:30 -05:00
Brian Coca
a8b24699be
added gpg2 as fallback fixes #1796
2016-12-08 11:23:30 -05:00
Brian Coca
4856f78031
updated win_file version_added fixes #1893
2016-12-08 11:23:30 -05:00
Toshio Kuratomi
a765411284
Another way that the serialization of the boto results can fail
2016-12-08 11:23:30 -05:00
Toshio Kuratomi
1f9580f257
Quote checksum description to fix docs
2016-12-08 11:23:30 -05:00
Toshio Kuratomi
cae0c2741c
Another launchconfig field needs to be explicitly converted for json serialization
...
Fixes #1848
2016-12-08 11:23:30 -05:00
sebi
ce1afd01e0
mem_limit client version check
2016-12-08 11:23:30 -05:00
Toshio Kuratomi
a10b0e6fff
Modify the default for synchronize's dest_port again
2016-12-08 11:23:30 -05:00
Toshio Kuratomi
052320b452
Update docs to reflect precedence for synchronize's dest_port param
2016-12-08 11:23:29 -05:00
Toshio Kuratomi
9ba5a438a8
Allow mode as a synchronize parameter (handled in action plugin)
2016-12-08 11:23:29 -05:00