Brian Coca
20bf02f6b9
rename return var to avoid conflicts
...
fixes #22323
2017-03-07 12:08:31 -05:00
Andrea Giardini
04e990281e
Add flag to Docker pull_image to know when the image is already latest ( #21508 )
...
* Add flag to Docker pull_image to know when the image is already latest
Whenever the flag pull is set to 'yes' the resource is always defined
as 'changed'. That is not true in case the image is already at the
latest version.
Related to ansible/ansible#19549
* Docker pull_image does not change status if the image is latest
2017-03-03 10:16:16 -05:00
Matt Martz
305c88700d
PEP8 E712 fixes ( #21916 )
2017-02-24 16:49:43 -06:00
Ryan Brown
d64d38a1f4
[cloud][docker] Insensitive search for docker port publishing ( #21579 )
2017-02-17 10:41:26 -05:00
Zhuo Peng
fe02dbecc0
[cloud] Fix a minor doc error in docker_container module ( #21033 )
2017-02-17 10:01:15 -05:00
Tomas Tomecek
30026cfb84
[cloud] module docker_image: print output on failure ( #20757 )
...
Fixes https://github.com/ansible/ansible-modules-core/issues/5161
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2017-02-16 09:47:18 -05:00
Matt Martz
7c00346714
Validate EXAMPLES as YAML
2017-02-15 13:01:43 -08:00
Matt Clay
cb76200c7d
PEP 8 E111 & E114 cleanup. ( #20838 )
2017-01-30 15:01:47 -08:00
Matt Clay
10d9318de7
PEP 8 indent cleanup. ( #20800 )
...
* PEP 8 E121 cleanup.
* PEP 8 E126 cleanup.
* PEP 8 E122 cleanup.
2017-01-29 07:28:53 +00:00
Matt Clay
d0d1158c5e
PEP 8 cleanup. ( #20789 )
...
* PEP 8 E703 cleanup.
* PEP 8 E701 cleanup.
* PEP 8 E711 cleanup.
* PEP 8 W191 and E101 cleanup.
2017-01-28 00:12:11 -08:00
Matt Clay
d913f69ba1
PEP 8 W291 whitespace cleanup.
2017-01-27 17:08:02 -08:00
Matt Clay
95789f3949
PEP 8 whitespace cleanup. ( #20783 )
...
* PEP 8 E271 whitespace cleanup.
* PEP 8 W293 whitespace cleanup.
* Fix whitespace issue from recent PR.
2017-01-27 15:45:23 -08:00
Ryan S. Brown
619e97d67e
docker_container: remove third digit from version_added docs
2017-01-25 12:04:10 -05:00
Ryan S. Brown
7a19a18e61
[docs] Update docker_container docs to match syslog-tag deprecation in docker 1.13
...
Closes #20591
2017-01-25 10:19:10 -05:00
Jun Guo
cfed617dba
Support option none in docker_container when setting log_driver ( #19040 )
...
Per official docker document, it support setting `--log-driver=none` to
disable any logging for the container. So let's add it to this module.
Fixes #5337
2017-01-23 20:23:58 +00:00
dariko
e2a1ce2916
[docker] Add compatibility with docker-py v2.0
2017-01-18 14:39:18 -05:00
Tyrone Tudehope
38d42e8b36
module is a property of the global object client ( #19744 )
...
Fixes #5466
2017-01-05 08:59:30 -08:00
Jun Guo
31526595c5
docker_image: docs: won't be pushed to private registry without push parameter. ( #19691 )
2016-12-27 08:15:12 +01:00
Andrea Tartaglia
ef391a11ec
Removed dict.iteritems() in modules. ( #18859 )
...
This is for py3 compatibility, addressed in #18506
2016-12-12 15:16:23 -08:00
James Cammarata
8afa090417
Resolving differences in core modules post-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
Asara
dddf810a19
Fixed typo in docker_image.py docs ( #5764 )
2016-12-08 11:25:34 -05:00
Luc Charpentier
be7af0193d
error in docker_container example ( #5631 )
2016-12-08 11:25:31 -05:00
Abdul Anshad A
480c364afd
fixes issue #5517 ( #5519 )
2016-12-08 11:25:31 -05:00
Sam Doran
38c0769abb
Examples syntax batch5 ( #5622 )
...
* Change example syntax on supervisorctl module
* Change example syntax or _ec2_ami_search module
* Change example syntax on cloudformation module
* Change example syntax on ec2 module
* Change example syntax on ec2_facts module
* Change example syntax on ec2_eip module
* Change example syntax on rds module
* Change example syntax on route53 module
* Change example syntax on s3 module
* Change example syntax on digital_ocean module
* Change example syntax on docker_service module
* Change example syntax on cloudformation module
* Change example syntax on gc_storage module
* Change example syntax on gce module
* Change example syntax on gce_mig module
* Change example syntax on _glance_image module
* Change example syntax on _keystone_user module
* Change example syntax on _nova_keypair module
* Change example syntax on _quantum_floating module
* Change example syntax on _quantum_floating_ip_associate module
* Change example syntax on _quantum_network module
* Change example syntax on _quantum_router module
* Change example syntax on _quantum_router_gateway module
* Change example syntax on _quantum_router_interface module
* Change example syntax on _quantum_subnet module
* SQUASH _quantum_subnet
* Add missing quotes
2016-12-08 11:25:31 -05:00
Patrick F. Marques
dc4cff7350
Remove duplicated option from examples
2016-12-08 11:25:28 -05:00
jctanner
06e1141106
replace type() with isinstance() ( #5541 )
...
Replace all use of type() with isintance()
Addresses https://github.com/ansible/ansible/issues/18310
2016-12-08 11:25:27 -05:00
Brian Coca
ba6bc5382d
corrected version added
2016-12-08 11:25:25 -05:00
Brian Coca
20f2fe4e91
added logout to docker_login
...
also cleaned up 'actions' and minor doc issues
2016-12-08 11:25:25 -05:00
Daniel Andrei Minca
ca36d232d5
fix unclear documentation for docker container
...
the docker container module's `exposed_ports` was slightly ambigous.
Use the official Docker documentation to define what an `exposed port`
is.
Resolves : ansible/ansible-modules-core#5303
Signed-off-by: Daniel Andrei Minca <mandrei17@gmail.com>
2016-12-08 11:25:22 -05:00
John R Barker
25b6492d37
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
2016-12-08 11:25:20 -05:00
John Barker
bca8bbe7c2
Correct functional typos
2016-12-08 11:25:19 -05:00
Chris Houseknecht
8e9befa5ba
Surface Compose stdout on failure
...
Signed-off-by: Chris Houseknecht <chouseknecht@ansible.com>
2016-12-08 11:25:18 -05:00
Chris Houseknecht
63b6672ea5
Improved enumeration of actions
2016-12-08 11:25:18 -05:00
Chris Houseknecht
1e4b8c13a3
Improved build and pull error handling
2016-12-08 11:25:18 -05:00
Chris Houseknecht
0e4b470ee2
Let docker-py handle decoding and JSON parsing of stream data. Fixes #4930 .
2016-12-08 11:25:14 -05:00
Chris Houseknecht
9432adfaf7
Put requested devices in correct format to enable config comparison. Fixes #5000 .
2016-12-08 11:25:14 -05:00
Aditya Marella
c3f815a6f6
Docker module: add support for OomScoreAdj
...
* docker-py param name oom_score_adj
* translates to OomScoreAdj in the docker remote API
* setting version_added to "2.2"
2016-12-08 11:25:13 -05:00
shaung
bcbeed244b
Fix #4504 Respect timeout option when starting/stopping/restarting containers.
2016-12-08 11:25:13 -05:00
Chris Houseknecht
f33828e753
Cast scale value to int. Fixes #4592 .
2016-12-08 11:25:11 -05:00
Chris Houseknecht
b01af0d747
Make project start and stop error handling more resilient, and improve message text.
2016-12-08 11:25:11 -05:00
Chris Houseknecht
e95f773d96
Set default log_driver to None to prevent config comparison when a log_driver is not specified. Fixes #4600 .
2016-12-08 11:25:03 -05:00
Chris Houseknecht
05303a974d
Purge networks using network name rather than ID. Fixes 4596.
2016-12-08 11:25:03 -05:00
Chris Houseknecht
890c2d04e2
Default restart_retries to None rather than 0. Fixes #4534 .
2016-12-08 11:25:03 -05:00
chouseknecht
964b7ecffa
Fix container labels expected vs actual comparison.
2016-12-08 11:24:54 -05:00
chouseknecht
1b4a3dbc86
Fix doc strings. Use of > was breaking HTML generation on docs site module page.
2016-12-08 11:24:52 -05:00
Linus Arver
8da17b750d
docker_service: fix files/project_files typo
...
The original decision to rename from `project_files' to `files' was in
3a5dd0007634c9d4e379f20cac77c8fd64b67f42.
2016-12-08 11:24:51 -05:00
chouseknecht
fb99277066
Exposing tcp and udp for same port fails. Fixes issue #4354 .
2016-12-08 11:24:51 -05:00
PikachuEXE
fc87dd9650
Allow specifying human readable value for option `memory_limit` again ( #4049 )
2016-12-08 11:24:50 -05:00
chouseknecht
76260d3aa8
Fix network alias and network link comparison. - Using set based comparison was not working consistently - With != operator worked locally but consistently failed on Travis - With 'not in' operator failed locally and on Travis
2016-12-08 11:24:50 -05:00