Commit Graph

9748 Commits (a4cddac368976f7fd7f97f5af0cf59d7fd032dfd)
 

Author SHA1 Message Date
Rezart Qelibari a4cddac368 Update system/group.py module.
Add ability to add system groups with next free system gid (< 500) on macOS.
9 years ago
Ryan Brown f35be48335 Support suspending scaling processes in `ec2_asg` module (#5562)
* Add support for suspending scaling processes
Ref: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html

* Set suspend_processes version_added to 2.3
9 years ago
John R Barker d21ac8a5da Merge pull request #5604 from samdoran/examples-syntax-fix-batch1
Examples syntax change batch1
9 years ago
John R Barker 41893a859c Examples syntax change batch2 (#5605)
* Change examples syntax on copy module

* Change examples syntax on fetch module

* Change examples syntax on file module

* Change examples syntax on find module

* Change examples syntax on ini_file module

* Change examples syntax on lineinfile module

* Change example syntax on replace module

* Change example syntax on stat module

* > Change example syntax on synchronize module

* Change example syntax on template module
9 years ago
John R Barker 8c51545906 double quotes for consistency 9 years ago
John R Barker 80959112b5 Need to quote if there is a `:` 9 years ago
Sam Doran 2ae8840c2c Change example syntax on template module 9 years ago
Sam Doran cc8cdd9506 > Change example syntax on synchronize module 9 years ago
Sam Doran 15890a4626 Change example syntax on stat module 9 years ago
Sam Doran 5ac9e53f97 Change example syntax on replace module 9 years ago
Sam Doran 942eb37a54 Change examples syntax on lineinfile module 9 years ago
Sam Doran 83f42ecfd4 Change examples syntax on ini_file module 9 years ago
Sam Doran 939da41dbd Change examples syntax on find module 9 years ago
Sam Doran 52274a400f Change examples syntax on file module 9 years ago
Sam Doran 07d1c1c3f7 Change examples syntax on fetch module 9 years ago
Sam Doran 501403a164 Change examples syntax on copy module 9 years ago
Sam Doran 7fc150c33b Change examples syntax on assemble module 9 years ago
Sam Doran 5ef188bcf1 Change examples syntax on acl module 9 years ago
Sam Doran c20e4b12e3 Change examples syntax on postgresql_user module 9 years ago
Sam Doran 67c02b6346 Change examples syntax on postgresql_privs module 9 years ago
Sam Doran 605c4df078 > Change examples syntax on postgresql_db module 9 years ago
Sam Doran f3c132cc25 Change examples syntax on mysql_variables module 9 years ago
Sam Doran 800438a201 Change examples syntax on mysql_user module 9 years ago
Sam Doran 74f6c3f94a Change examples syntax on mysql_db module 9 years ago
Sam Doran 5fcd8ecf10 Change examples syntax on shell module 9 years ago
Sam Doran d9ff373cec Change examples syntax on script module 9 years ago
Brian Coca b28a9a9dd3 Revert "stat: doc: add version for new returns" (#5599) 9 years ago
Brian Coca 75411fa9e3 Revert "stat: doc: add version for new returns" 9 years ago
Brian Coca 88f1e67b1f added file flags/attributes to stat (#5358)
depends on http://github.com/ansible/ansible/issue/18213
also documented return version of fields added in 2.2
added get_mime to keep consistency
changed default mime behaviour
9 years ago
Ryan Brown 7828b1adc1 Fixes: #4516 add placement_group argument for ec2_asg module (#5506) 9 years ago
Gyorgy Szombathelyi 4863335cfa Ini_file: fix regression with the create option
The new create option with the default value 'no' changes the
behavior from the previous Ansible releases. Change the default to
'yes' to create missing ini files by default.

Fixes: #5488
9 years ago
René Moser 8c762d7b02 stat: doc: add version for new returns (#5594) 9 years ago
Fabio Alessandro Locati 1f0d62b36d Use native YAML (#5571) 9 years ago
einarc 8d1fe3b444 Avoid `TypeError` when desired_capacity is not provided to `ec2_asg` module (#5501)
Moving the "check if min_size/max_size/desired_capacity..." code to execute BEFORE the desired_capacity code is used in the following operation:
num_new_inst_needed = desired_capacity - len(new_instances)

Otherwise the following exception occurs when desired_capacity is not specified and you're replacing instances:
    num_new_inst_needed = desired_capacity - len(new_instances)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

Stack Trace:

An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/var/lib/awx/.ansible/tmp/ansible-tmp-1478229985.74-62334493713074/ec2_asg", line 3044, in <module>
    main()
  File "/var/lib/awx/.ansible/tmp/ansible-tmp-1478229985.74-62334493713074/ec2_asg", line 3038, in main
    replace_changed, asg_properties=replace(connection, module)
  File "/var/lib/awx/.ansible/tmp/ansible-tmp-1478229985.74-62334493713074/ec2_asg", line 2778, in replace
    num_new_inst_needed = desired_capacity - len(new_instances)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "ec2_asg"}, "module_stderr": "Traceback (most recent call last):\n  File \"/var/lib/awx/.ansible/tmp/ansible-tmp-1478229985.74-62334493713074/ec2_asg\", line 3044, in <module>\n    main()\n  File \"/var/lib/awx/.ansible/tmp/ansible-tmp-1478229985.74-62334493713074/ec2_asg\", line 3038, in main\n    replace_changed, asg_properties=replace(connection, module)\n  File \"/var/lib/awx/.ansible/tmp/ansible-tmp-1478229985.74-62334493713074/ec2_asg\", line 2778, in replace\n    num_new_inst_needed = desired_capacity - len(new_instances)\nTypeError: unsupported operand type(s) for -: 'NoneType' and 'int'\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
	to retry, use: --limit @
9 years ago
Patrick F. Marques afa1750105 Remove duplicated option from examples 9 years ago
Zaius Dr 135c70bdd8 Improve `ec2` module Python3 Support (#5497)
Imported six module from ansible module_utils for backwards compatibility.
9 years ago
Lars Van Casteren 00e64def78 Docs update for `os_security_group` (#5531)
The example used equal characters and not colon characters.
9 years ago
Ben Tomasik af645041e5 Set suspend_processes version_added to 2.3 9 years ago
Ben Tomasik f4bd008184 Add support for suspending scaling processes
Ref: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html
9 years ago
Andrew Gaffney d52d256196 Fix bare variable references in docs (#5554) 9 years ago
Ryan Brown 801f4f0bf4 Fix `cloudformation` error when stack-rollback fails (#5550)
In cases where a CFN stack could not complete (due to lack of
permissions or similar) but also failed to roll back, the gathering of
stack resources would fail because successfully deleted items in the
rollback would no longer have a `PhysicalResourceId` property.

This PR fixes that by soft-failing when there's no physical ID
associated to a resource.
9 years ago
Ryan S. Brown 4f83b809dc Fix doc examples for `ec2_elb_lb` module
The examples had the listeners as a list item for each param, when they
really need to be their own objects.
9 years ago
Ryan S. Brown 8cbb0dc13e Fail gracefully in `ec2_asg` module when there are no matching launch configurations 9 years ago
jctanner 2de97ac5bd replace type() with isinstance() (#5541)
Replace all use of type() with isintance()

Addresses https://github.com/ansible/ansible/issues/18310
9 years ago
Ryan S. Brown 45588171a8 Fix link in `cloudformation` module docs 9 years ago
Sean Summers aa5124af27 added requires for botocore with RoleARN support
Added a requires for the minimum botocore version required to support RoleARN
9 years ago
Sean Summers f31a71c4cf add role_arn to support Service Role
Add `role_arn` to support [AWS CloudFormation Service Role](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-servicerole.html)
9 years ago
jctanner 80b69c4821 Correct the handling of state=latest for yum groups. (#4141)
* Correct the handling up state=latest for yum groups.
* Use yum-deprecated when available

Fixes #4119
9 years ago
Jason Cormie cbc3aac2f2 Addition of InstanceUUID to facts (#4424)
The Instance UUID(refered to as PersistenceUUID in the API) is a the ID
vcenter uses to idenify VMs.
My use case for this is that I configure Zabbix using ansible and its
vmware module relies on using these to identify VMs.
9 years ago
Yair Fried c953397fde Expose internal_network in os_floating_ip (#5510)
* Expose internal_network in os_floating_ip

Shade project has finally exposed this argument so now this module
matches old quantum_floatingip module's capabilities.

Use "nat_destination" term instead of "internal_network" to match shade
terminology.

* Add (private|internal)_network aliases to os_floating_ip

* Fix typo in os_floating_ip
9 years ago