ansible-ruby 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (591) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ansible/ruby/dsl_builders/block.rb +10 -6
  3. data/lib/ansible/ruby/dsl_builders/play.rb +1 -1
  4. data/lib/ansible/ruby/dsl_builders/result.rb +10 -9
  5. data/lib/ansible/ruby/dsl_builders/task.rb +23 -12
  6. data/lib/ansible/ruby/dsl_builders/tasks.rb +14 -6
  7. data/lib/ansible/ruby/models/base.rb +12 -0
  8. data/lib/ansible/ruby/models/task.rb +20 -4
  9. data/lib/ansible/ruby/modules/all.rb +16 -8
  10. data/lib/ansible/ruby/modules/custom/cloud/core/amazon/ec2_asg.rb +17 -0
  11. data/lib/ansible/ruby/modules/custom/cloud/core/docker/docker_container.rb +41 -0
  12. data/lib/ansible/ruby/modules/custom/commands/command.rb +1 -2
  13. data/lib/ansible/ruby/modules/custom/commands/raw.rb +1 -1
  14. data/lib/ansible/ruby/modules/custom/commands/script.rb +1 -1
  15. data/lib/ansible/ruby/modules/custom/commands/shell.rb +1 -1
  16. data/lib/ansible/ruby/modules/custom/files/copy.rb +15 -0
  17. data/lib/ansible/ruby/modules/custom/files/fetch.rb +15 -0
  18. data/lib/ansible/ruby/modules/custom/files/file.rb +15 -0
  19. data/lib/ansible/ruby/modules/custom/files/template.rb +15 -0
  20. data/lib/ansible/ruby/modules/custom/network/basics/get_url.rb +26 -0
  21. data/lib/ansible/ruby/modules/custom/utilities/logic/set_fact.rb +23 -0
  22. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/cloudformation.rb +1 -0
  23. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb +1 -0
  24. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami.rb +1 -0
  25. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami_find.rb +4 -0
  26. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami_search.rb +5 -0
  27. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg.rb +2 -0
  28. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb +1 -0
  29. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_elb.rb +3 -0
  30. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_elb_lb.rb +2 -0
  31. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_facts.rb +1 -0
  32. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_group.rb +1 -0
  33. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_key.rb +1 -0
  34. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_lc.rb +2 -0
  35. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_metric_alarm.rb +2 -0
  36. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_scaling_policy.rb +2 -0
  37. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_snapshot.rb +1 -0
  38. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_tag.rb +1 -0
  39. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vol.rb +1 -0
  40. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc.rb +1 -0
  41. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_vpc_net.rb +1 -0
  42. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/elasticache.rb +2 -0
  43. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/elasticache_subnet_group.rb +1 -0
  44. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb +1 -0
  45. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/iam_cert.rb +1 -0
  46. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/iam_policy.rb +1 -0
  47. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/rds.rb +1 -0
  48. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/rds_param_group.rb +1 -0
  49. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/rds_subnet_group.rb +1 -0
  50. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/route53.rb +1 -0
  51. data/lib/ansible/ruby/modules/generated/core/cloud/amazon/s3.rb +1 -0
  52. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure.rb +1 -0
  53. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_networkinterface.rb +1 -0
  54. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_networkinterface_facts.rb +1 -0
  55. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_publicipaddress.rb +1 -0
  56. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_publicipaddress_facts.rb +1 -0
  57. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_resourcegroup.rb +1 -0
  58. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_resourcegroup_facts.rb +1 -0
  59. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_securitygroup.rb +1 -0
  60. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_securitygroup_facts.rb +1 -0
  61. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_storageaccount.rb +1 -0
  62. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_storageaccount_facts.rb +1 -0
  63. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_storageblob.rb +1 -0
  64. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_subnet.rb +1 -0
  65. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_virtualmachine.rb +2 -0
  66. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_virtualmachineimage_facts.rb +1 -0
  67. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_virtualnetwork.rb +1 -0
  68. data/lib/ansible/ruby/modules/generated/core/cloud/azure/azure_rm_virtualnetwork_facts.rb +1 -0
  69. data/lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb +1 -0
  70. data/lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_domain.rb +1 -0
  71. data/lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey.rb +1 -0
  72. data/lib/ansible/ruby/modules/generated/core/cloud/docker/docker.rb +2 -0
  73. data/lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb +2 -0
  74. data/lib/ansible/ruby/modules/generated/core/cloud/docker/docker_image.rb +1 -0
  75. data/lib/ansible/ruby/modules/generated/core/cloud/docker/docker_image_facts.rb +1 -0
  76. data/lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb +3 -0
  77. data/lib/ansible/ruby/modules/generated/core/cloud/docker/docker_service.rb +5 -0
  78. data/lib/ansible/ruby/modules/generated/core/cloud/google/gc_storage.rb +1 -0
  79. data/lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb +1 -0
  80. data/lib/ansible/ruby/modules/generated/core/cloud/google/gce_lb.rb +1 -0
  81. data/lib/ansible/ruby/modules/generated/core/cloud/google/gce_net.rb +1 -0
  82. data/lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb +1 -0
  83. data/lib/ansible/ruby/modules/generated/core/cloud/linode/linode.rb +1 -0
  84. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/glance_image.rb +1 -0
  85. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/keystone_user.rb +1 -0
  86. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/nova_compute.rb +1 -0
  87. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/nova_keypair.rb +1 -0
  88. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_auth.rb +1 -0
  89. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_client_config.rb +1 -0
  90. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_floating_ip.rb +1 -0
  91. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_image.rb +1 -0
  92. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_image_facts.rb +1 -0
  93. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_ironic.rb +1 -0
  94. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_ironic_node.rb +1 -0
  95. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_keypair.rb +1 -0
  96. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_network.rb +1 -0
  97. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_networks_facts.rb +1 -0
  98. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_nova_flavor.rb +1 -0
  99. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_object.rb +1 -0
  100. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_port.rb +1 -0
  101. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_router.rb +1 -0
  102. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_security_group.rb +1 -0
  103. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_security_group_rule.rb +1 -0
  104. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_server.rb +1 -0
  105. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_server_actions.rb +1 -0
  106. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_server_facts.rb +1 -0
  107. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_server_volume.rb +1 -0
  108. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb +1 -0
  109. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnets_facts.rb +1 -0
  110. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_user.rb +1 -0
  111. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_user_group.rb +1 -0
  112. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/os_volume.rb +1 -0
  113. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/quantum_floating_ip.rb +1 -0
  114. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/quantum_floating_ip_associate.rb +1 -0
  115. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/quantum_network.rb +1 -0
  116. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/quantum_router.rb +1 -0
  117. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/quantum_router_gateway.rb +1 -0
  118. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/quantum_router_interface.rb +1 -0
  119. data/lib/ansible/ruby/modules/generated/core/cloud/openstack/quantum_subnet.rb +1 -0
  120. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb +1 -0
  121. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_cbs.rb +1 -0
  122. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_cbs_attachments.rb +1 -0
  123. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_cdb.rb +1 -0
  124. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_cdb_database.rb +1 -0
  125. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_cdb_user.rb +1 -0
  126. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_clb.rb +1 -0
  127. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_clb_nodes.rb +1 -0
  128. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_dns.rb +1 -0
  129. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_dns_record.rb +1 -0
  130. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_facts.rb +1 -0
  131. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_files.rb +1 -0
  132. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_files_objects.rb +1 -0
  133. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_identity.rb +1 -0
  134. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_keypair.rb +1 -0
  135. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_meta.rb +1 -0
  136. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_network.rb +1 -0
  137. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_queue.rb +1 -0
  138. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_group.rb +1 -0
  139. data/lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb +1 -0
  140. data/lib/ansible/ruby/modules/generated/core/cloud/vmware/vsphere_guest.rb +1 -0
  141. data/lib/ansible/ruby/modules/generated/core/commands/command.rb +2 -0
  142. data/lib/ansible/ruby/modules/generated/core/commands/raw.rb +2 -0
  143. data/lib/ansible/ruby/modules/generated/core/commands/script.rb +4 -0
  144. data/lib/ansible/ruby/modules/generated/core/commands/shell.rb +1 -0
  145. data/lib/ansible/ruby/modules/generated/core/database/mysql/mysql_db.rb +1 -0
  146. data/lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb +1 -0
  147. data/lib/ansible/ruby/modules/generated/core/database/mysql/mysql_variables.rb +1 -0
  148. data/lib/ansible/ruby/modules/generated/core/database/postgresql/postgresql_db.rb +1 -0
  149. data/lib/ansible/ruby/modules/generated/core/database/postgresql/postgresql_privs.rb +2 -0
  150. data/lib/ansible/ruby/modules/generated/core/database/postgresql/postgresql_user.rb +3 -0
  151. data/lib/ansible/ruby/modules/generated/core/files/acl.rb +1 -0
  152. data/lib/ansible/ruby/modules/generated/core/files/assemble.rb +1 -0
  153. data/lib/ansible/ruby/modules/generated/core/files/copy.rb +1 -0
  154. data/lib/ansible/ruby/modules/generated/core/files/fetch.rb +1 -0
  155. data/lib/ansible/ruby/modules/generated/core/files/file.rb +1 -0
  156. data/lib/ansible/ruby/modules/generated/core/files/find.rb +1 -0
  157. data/lib/ansible/ruby/modules/generated/core/files/ini_file.rb +2 -0
  158. data/lib/ansible/ruby/modules/generated/core/files/lineinfile.rb +2 -0
  159. data/lib/ansible/ruby/modules/generated/core/files/replace.rb +2 -0
  160. data/lib/ansible/ruby/modules/generated/core/files/stat.rb +1 -0
  161. data/lib/ansible/ruby/modules/generated/core/files/synchronize.rb +1 -0
  162. data/lib/ansible/ruby/modules/generated/core/files/template.rb +2 -0
  163. data/lib/ansible/ruby/modules/generated/core/files/unarchive.rb +1 -0
  164. data/lib/ansible/ruby/modules/generated/core/files/xattr.rb +1 -0
  165. data/lib/ansible/ruby/modules/generated/core/inventory/add_host.rb +1 -0
  166. data/lib/ansible/ruby/modules/generated/core/inventory/group_by.rb +1 -0
  167. data/lib/ansible/ruby/modules/generated/core/network/basics/get_url.rb +3 -0
  168. data/lib/ansible/ruby/modules/generated/core/network/basics/slurp.rb +1 -0
  169. data/lib/ansible/ruby/modules/generated/core/network/basics/uri.rb +1 -0
  170. data/lib/ansible/ruby/modules/generated/core/network/cumulus/cl_bond.rb +1 -0
  171. data/lib/ansible/ruby/modules/generated/core/network/cumulus/cl_bridge.rb +1 -0
  172. data/lib/ansible/ruby/modules/generated/core/network/cumulus/cl_img_install.rb +1 -0
  173. data/lib/ansible/ruby/modules/generated/core/network/cumulus/cl_interface.rb +1 -0
  174. data/lib/ansible/ruby/modules/generated/core/network/cumulus/cl_interface_policy.rb +1 -0
  175. data/lib/ansible/ruby/modules/generated/core/network/cumulus/cl_license.rb +1 -0
  176. data/lib/ansible/ruby/modules/generated/core/network/cumulus/cl_ports.rb +1 -0
  177. data/lib/ansible/ruby/modules/generated/core/network/eos/eos_command.rb +1 -0
  178. data/lib/ansible/ruby/modules/generated/core/network/eos/eos_config.rb +1 -0
  179. data/lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb +3 -0
  180. data/lib/ansible/ruby/modules/generated/core/network/eos/eos_template.rb +1 -0
  181. data/lib/ansible/ruby/modules/generated/core/network/ios/ios_command.rb +1 -0
  182. data/lib/ansible/ruby/modules/generated/core/network/ios/ios_config.rb +1 -0
  183. data/lib/ansible/ruby/modules/generated/core/network/ios/ios_template.rb +1 -0
  184. data/lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_command.rb +1 -0
  185. data/lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_config.rb +1 -0
  186. data/lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_template.rb +1 -0
  187. data/lib/ansible/ruby/modules/generated/core/network/junos/junos_command.rb +1 -0
  188. data/lib/ansible/ruby/modules/generated/core/network/junos/junos_config.rb +2 -0
  189. data/lib/ansible/ruby/modules/generated/core/network/junos/junos_facts.rb +1 -0
  190. data/lib/ansible/ruby/modules/generated/core/network/junos/junos_netconf.rb +1 -0
  191. data/lib/ansible/ruby/modules/generated/core/network/junos/junos_package.rb +1 -0
  192. data/lib/ansible/ruby/modules/generated/core/network/junos/junos_template.rb +1 -0
  193. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_command.rb +1 -0
  194. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_config.rb +1 -0
  195. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_facts.rb +1 -0
  196. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_feature.rb +1 -0
  197. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_interface.rb +1 -0
  198. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_ip_interface.rb +1 -0
  199. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_nxapi.rb +2 -0
  200. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_ping.rb +1 -0
  201. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_switchport.rb +1 -0
  202. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_template.rb +1 -0
  203. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb +1 -0
  204. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vrf.rb +1 -0
  205. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vrf_interface.rb +1 -0
  206. data/lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vrrp.rb +1 -0
  207. data/lib/ansible/ruby/modules/generated/core/network/openswitch/ops_command.rb +1 -0
  208. data/lib/ansible/ruby/modules/generated/core/network/openswitch/ops_config.rb +1 -0
  209. data/lib/ansible/ruby/modules/generated/core/network/openswitch/ops_facts.rb +1 -0
  210. data/lib/ansible/ruby/modules/generated/core/network/openswitch/ops_template.rb +1 -0
  211. data/lib/ansible/ruby/modules/generated/core/packaging/language/easy_install.rb +1 -0
  212. data/lib/ansible/ruby/modules/generated/core/packaging/language/gem.rb +1 -0
  213. data/lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb +1 -0
  214. data/lib/ansible/ruby/modules/generated/core/packaging/os/apt.rb +1 -0
  215. data/lib/ansible/ruby/modules/generated/core/packaging/os/apt_key.rb +1 -0
  216. data/lib/ansible/ruby/modules/generated/core/packaging/os/apt_repository.rb +1 -0
  217. data/lib/ansible/ruby/modules/generated/core/packaging/os/apt_rpm.rb +1 -0
  218. data/lib/ansible/ruby/modules/generated/core/packaging/os/package.rb +1 -0
  219. data/lib/ansible/ruby/modules/generated/core/packaging/os/redhat_subscription.rb +1 -0
  220. data/lib/ansible/ruby/modules/generated/core/packaging/os/rhn_channel.rb +1 -0
  221. data/lib/ansible/ruby/modules/generated/core/packaging/os/rhn_register.rb +1 -0
  222. data/lib/ansible/ruby/modules/generated/core/packaging/os/rpm_key.rb +1 -0
  223. data/lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb +1 -0
  224. data/lib/ansible/ruby/modules/generated/core/source_control/git.rb +1 -0
  225. data/lib/ansible/ruby/modules/generated/core/source_control/hg.rb +1 -0
  226. data/lib/ansible/ruby/modules/generated/core/source_control/subversion.rb +1 -0
  227. data/lib/ansible/ruby/modules/generated/core/system/authorized_key.rb +1 -0
  228. data/lib/ansible/ruby/modules/generated/core/system/cron.rb +3 -0
  229. data/lib/ansible/ruby/modules/generated/core/system/group.rb +1 -0
  230. data/lib/ansible/ruby/modules/generated/core/system/hostname.rb +4 -0
  231. data/lib/ansible/ruby/modules/generated/core/system/mount.rb +1 -0
  232. data/lib/ansible/ruby/modules/generated/core/system/ping.rb +2 -0
  233. data/lib/ansible/ruby/modules/generated/core/system/seboolean.rb +1 -0
  234. data/lib/ansible/ruby/modules/generated/core/system/selinux.rb +1 -0
  235. data/lib/ansible/ruby/modules/generated/core/system/service.rb +1 -0
  236. data/lib/ansible/ruby/modules/generated/core/system/setup.rb +1 -0
  237. data/lib/ansible/ruby/modules/generated/core/system/sysctl.rb +1 -0
  238. data/lib/ansible/ruby/modules/generated/core/system/user.rb +1 -0
  239. data/lib/ansible/ruby/modules/generated/core/utilities/helper/accelerate.rb +3 -0
  240. data/lib/ansible/ruby/modules/generated/core/utilities/helper/fireball.rb +2 -0
  241. data/lib/ansible/ruby/modules/generated/core/utilities/logic/assert.rb +1 -0
  242. data/lib/ansible/ruby/modules/generated/core/utilities/logic/async_status.rb +1 -0
  243. data/lib/ansible/ruby/modules/generated/core/utilities/logic/debug.rb +1 -0
  244. data/lib/ansible/ruby/modules/generated/core/utilities/logic/fail.rb +1 -0
  245. data/lib/ansible/ruby/modules/generated/core/utilities/logic/pause.rb +3 -0
  246. data/lib/ansible/ruby/modules/generated/core/utilities/logic/set_fact.rb +2 -0
  247. data/lib/ansible/ruby/modules/generated/core/utilities/logic/wait_for.rb +5 -0
  248. data/lib/ansible/ruby/modules/generated/core/web_infrastructure/apache2_module.rb +1 -0
  249. data/lib/ansible/ruby/modules/generated/core/web_infrastructure/django_manage.rb +1 -0
  250. data/lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb +2 -0
  251. data/lib/ansible/ruby/modules/generated/core/web_infrastructure/supervisorctl.rb +1 -0
  252. data/lib/ansible/ruby/modules/generated/core/windows/win_copy.rb +1 -0
  253. data/lib/ansible/ruby/modules/generated/core/windows/win_feature.rb +1 -0
  254. data/lib/ansible/ruby/modules/generated/core/windows/win_file.rb +1 -0
  255. data/lib/ansible/ruby/modules/generated/core/windows/win_get_url.rb +1 -0
  256. data/lib/ansible/ruby/modules/generated/core/windows/win_group.rb +1 -0
  257. data/lib/ansible/ruby/modules/generated/core/windows/win_lineinfile.rb +2 -0
  258. data/lib/ansible/ruby/modules/generated/core/windows/win_msi.rb +1 -0
  259. data/lib/ansible/ruby/modules/generated/core/windows/win_ping.rb +1 -0
  260. data/lib/ansible/ruby/modules/generated/core/windows/win_reboot.rb +1 -0
  261. data/lib/ansible/ruby/modules/generated/core/windows/win_service.rb +1 -0
  262. data/lib/ansible/ruby/modules/generated/core/windows/win_stat.rb +1 -0
  263. data/lib/ansible/ruby/modules/generated/core/windows/win_template.rb +2 -0
  264. data/lib/ansible/ruby/modules/generated/core/windows/win_user.rb +1 -0
  265. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/cloudtrail.rb +1 -0
  266. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/dynamodb_table.rb +3 -0
  267. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_ami_copy.rb +1 -0
  268. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_elb_facts.rb +1 -0
  269. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_eni.rb +1 -0
  270. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_eni_facts.rb +1 -0
  271. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_remote_facts.rb +1 -0
  272. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_snapshot_facts.rb +1 -0
  273. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vol_facts.rb +1 -0
  274. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb +1 -0
  275. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_igw.rb +1 -0
  276. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_net_facts.rb +1 -0
  277. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_route_table.rb +1 -0
  278. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_route_table_facts.rb +1 -0
  279. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_subnet.rb +1 -0
  280. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_subnet_facts.rb +1 -0
  281. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_win_password.rb +1 -0
  282. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ecs_cluster.rb +1 -0
  283. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ecs_service.rb +1 -0
  284. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ecs_service_facts.rb +1 -0
  285. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ecs_task.rb +1 -0
  286. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/ecs_taskdefinition.rb +1 -0
  287. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/route53_facts.rb +1 -0
  288. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/route53_health_check.rb +2 -0
  289. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/route53_zone.rb +1 -0
  290. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb +1 -0
  291. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb +1 -0
  292. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_logging.rb +1 -0
  293. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/sns_topic.rb +1 -0
  294. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/sqs_queue.rb +2 -0
  295. data/lib/ansible/ruby/modules/generated/extras/cloud/amazon/sts_assume_role.rb +1 -0
  296. data/lib/ansible/ruby/modules/generated/extras/cloud/azure/azure_rm_deployment.rb +1 -0
  297. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_aa_policy.rb +1 -0
  298. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_alert_policy.rb +1 -0
  299. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_blueprint_package.rb +1 -0
  300. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_firewall_policy.rb +1 -0
  301. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_group.rb +1 -0
  302. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_loadbalancer.rb +1 -0
  303. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_modify_server.rb +1 -0
  304. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_publicip.rb +1 -0
  305. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb +1 -0
  306. data/lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server_snapshot.rb +1 -0
  307. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_account.rb +1 -0
  308. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_affinitygroup.rb +1 -0
  309. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_cluster.rb +1 -0
  310. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_configuration.rb +1 -0
  311. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_domain.rb +1 -0
  312. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_facts.rb +1 -0
  313. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb +1 -0
  314. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_instance.rb +1 -0
  315. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_instance_facts.rb +1 -0
  316. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_instancegroup.rb +1 -0
  317. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_ip_address.rb +1 -0
  318. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_iso.rb +1 -0
  319. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_loadbalancer_rule.rb +1 -0
  320. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_loadbalancer_rule_member.rb +1 -0
  321. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_network.rb +1 -0
  322. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_pod.rb +1 -0
  323. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_portforward.rb +1 -0
  324. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_project.rb +1 -0
  325. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_resourcelimit.rb +1 -0
  326. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_securitygroup.rb +1 -0
  327. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_securitygroup_rule.rb +1 -0
  328. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_sshkeypair.rb +2 -0
  329. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_staticnat.rb +1 -0
  330. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_template.rb +1 -0
  331. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_user.rb +1 -0
  332. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_vmsnapshot.rb +1 -0
  333. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_volume.rb +1 -0
  334. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_zone.rb +1 -0
  335. data/lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_zone_facts.rb +1 -0
  336. data/lib/ansible/ruby/modules/generated/extras/cloud/google/gce_img.rb +1 -0
  337. data/lib/ansible/ruby/modules/generated/extras/cloud/google/gce_tag.rb +1 -0
  338. data/lib/ansible/ruby/modules/generated/extras/cloud/lxc/lxc_container.rb +1 -0
  339. data/lib/ansible/ruby/modules/generated/extras/cloud/misc/ovirt.rb +1 -0
  340. data/lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb +2 -0
  341. data/lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox_template.rb +1 -0
  342. data/lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb +1 -0
  343. data/lib/ansible/ruby/modules/generated/extras/cloud/misc/virt_net.rb +1 -0
  344. data/lib/ansible/ruby/modules/generated/extras/cloud/misc/virt_pool.rb +1 -0
  345. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_flavor_facts.rb +1 -0
  346. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_group.rb +1 -0
  347. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_ironic_inspect.rb +1 -0
  348. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_keystone_domain.rb +1 -0
  349. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_keystone_domain_facts.rb +1 -0
  350. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_keystone_role.rb +1 -0
  351. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_port_facts.rb +1 -0
  352. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_project.rb +1 -0
  353. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_project_facts.rb +1 -0
  354. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_user_facts.rb +1 -0
  355. data/lib/ansible/ruby/modules/generated/extras/cloud/openstack/os_user_role.rb +1 -0
  356. data/lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb +1 -0
  357. data/lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb +1 -0
  358. data/lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_nic.rb +1 -0
  359. data/lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_volume.rb +1 -0
  360. data/lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_volume_attachments.rb +1 -0
  361. data/lib/ansible/ruby/modules/generated/extras/cloud/rackspace/rax_clb_ssl.rb +1 -0
  362. data/lib/ansible/ruby/modules/generated/extras/cloud/rackspace/rax_mon_alarm.rb +1 -0
  363. data/lib/ansible/ruby/modules/generated/extras/cloud/rackspace/rax_mon_check.rb +1 -0
  364. data/lib/ansible/ruby/modules/generated/extras/cloud/rackspace/rax_mon_entity.rb +1 -0
  365. data/lib/ansible/ruby/modules/generated/extras/cloud/rackspace/rax_mon_notification.rb +1 -0
  366. data/lib/ansible/ruby/modules/generated/extras/cloud/rackspace/rax_mon_notification_plan.rb +1 -0
  367. data/lib/ansible/ruby/modules/generated/extras/cloud/softlayer/sl_vm.rb +1 -0
  368. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vca_fw.rb +1 -0
  369. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vca_nat.rb +1 -0
  370. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vca_vapp.rb +1 -0
  371. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_cluster.rb +1 -0
  372. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_datacenter.rb +1 -0
  373. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_dns_config.rb +1 -0
  374. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_dvs_host.rb +1 -0
  375. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_dvs_portgroup.rb +1 -0
  376. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_dvswitch.rb +1 -0
  377. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_host.rb +1 -0
  378. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_maintenancemode.rb +2 -0
  379. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_migrate_vmk.rb +1 -0
  380. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_portgroup.rb +1 -0
  381. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_target_canonical_facts.rb +1 -0
  382. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_vm_facts.rb +1 -0
  383. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_vm_shell.rb +1 -0
  384. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_vm_vss_dvs_migrate.rb +1 -0
  385. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_vmkernel.rb +1 -0
  386. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_vmkernel_ip_config.rb +1 -0
  387. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_vsan_cluster.rb +1 -0
  388. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vmware_vswitch.rb +1 -0
  389. data/lib/ansible/ruby/modules/generated/extras/cloud/vmware/vsphere_copy.rb +1 -0
  390. data/lib/ansible/ruby/modules/generated/extras/cloud/webfaction/webfaction_app.rb +1 -0
  391. data/lib/ansible/ruby/modules/generated/extras/cloud/webfaction/webfaction_db.rb +1 -0
  392. data/lib/ansible/ruby/modules/generated/extras/cloud/webfaction/webfaction_domain.rb +1 -0
  393. data/lib/ansible/ruby/modules/generated/extras/cloud/webfaction/webfaction_mailbox.rb +1 -0
  394. data/lib/ansible/ruby/modules/generated/extras/cloud/webfaction/webfaction_site.rb +1 -0
  395. data/lib/ansible/ruby/modules/generated/extras/cloud/xenserver_facts.rb +1 -0
  396. data/lib/ansible/ruby/modules/generated/extras/clustering/consul.rb +4 -0
  397. data/lib/ansible/ruby/modules/generated/extras/clustering/consul_acl.rb +1 -0
  398. data/lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb +3 -0
  399. data/lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb +1 -0
  400. data/lib/ansible/ruby/modules/generated/extras/clustering/kubernetes.rb +1 -0
  401. data/lib/ansible/ruby/modules/generated/extras/clustering/znode.rb +1 -0
  402. data/lib/ansible/ruby/modules/generated/extras/commands/expect.rb +2 -0
  403. data/lib/ansible/ruby/modules/generated/extras/database/influxdb/influxdb_database.rb +1 -0
  404. data/lib/ansible/ruby/modules/generated/extras/database/influxdb/influxdb_retention_policy.rb +1 -0
  405. data/lib/ansible/ruby/modules/generated/extras/database/misc/mongodb_parameter.rb +1 -0
  406. data/lib/ansible/ruby/modules/generated/extras/database/misc/mongodb_user.rb +1 -0
  407. data/lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb +1 -0
  408. data/lib/ansible/ruby/modules/generated/extras/database/misc/riak.rb +1 -0
  409. data/lib/ansible/ruby/modules/generated/extras/database/mysql/mysql_replication.rb +1 -0
  410. data/lib/ansible/ruby/modules/generated/extras/database/postgresql/postgresql_ext.rb +1 -0
  411. data/lib/ansible/ruby/modules/generated/extras/database/postgresql/postgresql_lang.rb +4 -0
  412. data/lib/ansible/ruby/modules/generated/extras/database/vertica/vertica_configuration.rb +1 -0
  413. data/lib/ansible/ruby/modules/generated/extras/database/vertica/vertica_facts.rb +1 -0
  414. data/lib/ansible/ruby/modules/generated/extras/database/vertica/vertica_role.rb +1 -0
  415. data/lib/ansible/ruby/modules/generated/extras/database/vertica/vertica_schema.rb +3 -0
  416. data/lib/ansible/ruby/modules/generated/extras/database/vertica/vertica_user.rb +3 -0
  417. data/lib/ansible/ruby/modules/generated/extras/files/blockinfile.rb +1 -0
  418. data/lib/ansible/ruby/modules/generated/extras/files/patch.rb +1 -0
  419. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_binding.rb +1 -0
  420. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_exchange.rb +1 -0
  421. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_parameter.rb +1 -0
  422. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_plugin.rb +1 -0
  423. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_policy.rb +1 -0
  424. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_queue.rb +1 -0
  425. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_user.rb +1 -0
  426. data/lib/ansible/ruby/modules/generated/extras/messaging/rabbitmq_vhost.rb +1 -0
  427. data/lib/ansible/ruby/modules/generated/extras/monitoring/airbrake_deployment.rb +1 -0
  428. data/lib/ansible/ruby/modules/generated/extras/monitoring/bigpanda.rb +1 -0
  429. data/lib/ansible/ruby/modules/generated/extras/monitoring/boundary_meter.rb +1 -0
  430. data/lib/ansible/ruby/modules/generated/extras/monitoring/circonus_annotation.rb +1 -0
  431. data/lib/ansible/ruby/modules/generated/extras/monitoring/datadog_event.rb +2 -0
  432. data/lib/ansible/ruby/modules/generated/extras/monitoring/datadog_monitor.rb +2 -0
  433. data/lib/ansible/ruby/modules/generated/extras/monitoring/librato_annotation.rb +1 -0
  434. data/lib/ansible/ruby/modules/generated/extras/monitoring/logentries.rb +1 -0
  435. data/lib/ansible/ruby/modules/generated/extras/monitoring/monit.rb +1 -0
  436. data/lib/ansible/ruby/modules/generated/extras/monitoring/nagios.rb +5 -0
  437. data/lib/ansible/ruby/modules/generated/extras/monitoring/newrelic_deployment.rb +1 -0
  438. data/lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty.rb +1 -0
  439. data/lib/ansible/ruby/modules/generated/extras/monitoring/pagerduty_alert.rb +1 -0
  440. data/lib/ansible/ruby/modules/generated/extras/monitoring/pingdom.rb +1 -0
  441. data/lib/ansible/ruby/modules/generated/extras/monitoring/rollbar_deployment.rb +1 -0
  442. data/lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb +4 -0
  443. data/lib/ansible/ruby/modules/generated/extras/monitoring/stackdriver.rb +1 -0
  444. data/lib/ansible/ruby/modules/generated/extras/monitoring/uptimerobot.rb +1 -0
  445. data/lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_group.rb +2 -0
  446. data/lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_host.rb +1 -0
  447. data/lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_hostmacro.rb +1 -0
  448. data/lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_maintenance.rb +1 -0
  449. data/lib/ansible/ruby/modules/generated/extras/monitoring/zabbix_screen.rb +1 -0
  450. data/lib/ansible/ruby/modules/generated/extras/network/a10/a10_server.rb +1 -0
  451. data/lib/ansible/ruby/modules/generated/extras/network/a10/a10_service_group.rb +1 -0
  452. data/lib/ansible/ruby/modules/generated/extras/network/a10/a10_virtual_server.rb +1 -0
  453. data/lib/ansible/ruby/modules/generated/extras/network/citrix/netscaler.rb +1 -0
  454. data/lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb +1 -0
  455. data/lib/ansible/ruby/modules/generated/extras/network/dnsimple.rb +1 -0
  456. data/lib/ansible/ruby/modules/generated/extras/network/dnsmadeeasy.rb +1 -0
  457. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_facts.rb +1 -0
  458. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_gtm_wide_ip.rb +1 -0
  459. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_monitor_http.rb +1 -0
  460. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_monitor_tcp.rb +1 -0
  461. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_node.rb +1 -0
  462. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_pool.rb +1 -0
  463. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_pool_member.rb +1 -0
  464. data/lib/ansible/ruby/modules/generated/extras/network/f5/bigip_virtual_server.rb +1 -0
  465. data/lib/ansible/ruby/modules/generated/extras/network/haproxy.rb +1 -0
  466. data/lib/ansible/ruby/modules/generated/extras/network/ipify_facts.rb +1 -0
  467. data/lib/ansible/ruby/modules/generated/extras/network/lldp.rb +1 -0
  468. data/lib/ansible/ruby/modules/generated/extras/network/nmcli.rb +1 -0
  469. data/lib/ansible/ruby/modules/generated/extras/network/openvswitch_bridge.rb +1 -0
  470. data/lib/ansible/ruby/modules/generated/extras/network/openvswitch_db.rb +1 -0
  471. data/lib/ansible/ruby/modules/generated/extras/network/openvswitch_port.rb +1 -0
  472. data/lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb +1 -0
  473. data/lib/ansible/ruby/modules/generated/extras/notification/campfire.rb +2 -0
  474. data/lib/ansible/ruby/modules/generated/extras/notification/flowdock.rb +1 -0
  475. data/lib/ansible/ruby/modules/generated/extras/notification/grove.rb +1 -0
  476. data/lib/ansible/ruby/modules/generated/extras/notification/hall.rb +1 -0
  477. data/lib/ansible/ruby/modules/generated/extras/notification/hipchat.rb +1 -0
  478. data/lib/ansible/ruby/modules/generated/extras/notification/irc.rb +1 -0
  479. data/lib/ansible/ruby/modules/generated/extras/notification/jabber.rb +1 -0
  480. data/lib/ansible/ruby/modules/generated/extras/notification/mail.rb +4 -0
  481. data/lib/ansible/ruby/modules/generated/extras/notification/mqtt.rb +1 -0
  482. data/lib/ansible/ruby/modules/generated/extras/notification/nexmo.rb +1 -0
  483. data/lib/ansible/ruby/modules/generated/extras/notification/osx_say.rb +1 -0
  484. data/lib/ansible/ruby/modules/generated/extras/notification/pushbullet.rb +1 -0
  485. data/lib/ansible/ruby/modules/generated/extras/notification/pushover.rb +1 -0
  486. data/lib/ansible/ruby/modules/generated/extras/notification/sendgrid.rb +1 -0
  487. data/lib/ansible/ruby/modules/generated/extras/notification/slack.rb +1 -0
  488. data/lib/ansible/ruby/modules/generated/extras/notification/sns.rb +1 -0
  489. data/lib/ansible/ruby/modules/generated/extras/notification/twilio.rb +1 -0
  490. data/lib/ansible/ruby/modules/generated/extras/notification/typetalk.rb +1 -0
  491. data/lib/ansible/ruby/modules/generated/extras/packaging/dpkg_selections.rb +1 -0
  492. data/lib/ansible/ruby/modules/generated/extras/packaging/elasticsearch_plugin.rb +1 -0
  493. data/lib/ansible/ruby/modules/generated/extras/packaging/language/bower.rb +1 -0
  494. data/lib/ansible/ruby/modules/generated/extras/packaging/language/bundler.rb +1 -0
  495. data/lib/ansible/ruby/modules/generated/extras/packaging/language/composer.rb +1 -0
  496. data/lib/ansible/ruby/modules/generated/extras/packaging/language/cpanm.rb +1 -0
  497. data/lib/ansible/ruby/modules/generated/extras/packaging/language/maven_artifact.rb +3 -0
  498. data/lib/ansible/ruby/modules/generated/extras/packaging/language/npm.rb +1 -0
  499. data/lib/ansible/ruby/modules/generated/extras/packaging/language/pear.rb +1 -0
  500. data/lib/ansible/ruby/modules/generated/extras/packaging/os/apk.rb +1 -0
  501. data/lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb +1 -0
  502. data/lib/ansible/ruby/modules/generated/extras/packaging/os/homebrew.rb +1 -0
  503. data/lib/ansible/ruby/modules/generated/extras/packaging/os/homebrew_cask.rb +1 -0
  504. data/lib/ansible/ruby/modules/generated/extras/packaging/os/homebrew_tap.rb +1 -0
  505. data/lib/ansible/ruby/modules/generated/extras/packaging/os/layman.rb +1 -0
  506. data/lib/ansible/ruby/modules/generated/extras/packaging/os/macports.rb +1 -0
  507. data/lib/ansible/ruby/modules/generated/extras/packaging/os/openbsd_pkg.rb +1 -0
  508. data/lib/ansible/ruby/modules/generated/extras/packaging/os/opkg.rb +1 -0
  509. data/lib/ansible/ruby/modules/generated/extras/packaging/os/pacman.rb +1 -0
  510. data/lib/ansible/ruby/modules/generated/extras/packaging/os/pkg5.rb +1 -0
  511. data/lib/ansible/ruby/modules/generated/extras/packaging/os/pkg5_publisher.rb +2 -0
  512. data/lib/ansible/ruby/modules/generated/extras/packaging/os/pkgin.rb +1 -0
  513. data/lib/ansible/ruby/modules/generated/extras/packaging/os/pkgng.rb +1 -0
  514. data/lib/ansible/ruby/modules/generated/extras/packaging/os/pkgutil.rb +3 -0
  515. data/lib/ansible/ruby/modules/generated/extras/packaging/os/portage.rb +1 -0
  516. data/lib/ansible/ruby/modules/generated/extras/packaging/os/portinstall.rb +1 -0
  517. data/lib/ansible/ruby/modules/generated/extras/packaging/os/slackpkg.rb +1 -0
  518. data/lib/ansible/ruby/modules/generated/extras/packaging/os/svr4pkg.rb +3 -0
  519. data/lib/ansible/ruby/modules/generated/extras/packaging/os/swdepot.rb +1 -0
  520. data/lib/ansible/ruby/modules/generated/extras/packaging/os/urpmi.rb +1 -0
  521. data/lib/ansible/ruby/modules/generated/extras/packaging/os/yum_repository.rb +1 -0
  522. data/lib/ansible/ruby/modules/generated/extras/packaging/os/zypper.rb +1 -0
  523. data/lib/ansible/ruby/modules/generated/extras/packaging/os/zypper_repository.rb +1 -0
  524. data/lib/ansible/ruby/modules/generated/extras/source_control/bzr.rb +1 -0
  525. data/lib/ansible/ruby/modules/generated/extras/source_control/git_config.rb +1 -0
  526. data/lib/ansible/ruby/modules/generated/extras/source_control/github_hooks.rb +1 -0
  527. data/lib/ansible/ruby/modules/generated/extras/source_control/gitlab_group.rb +2 -0
  528. data/lib/ansible/ruby/modules/generated/extras/source_control/gitlab_project.rb +3 -0
  529. data/lib/ansible/ruby/modules/generated/extras/source_control/gitlab_user.rb +3 -0
  530. data/lib/ansible/ruby/modules/generated/extras/system/alternatives.rb +2 -0
  531. data/lib/ansible/ruby/modules/generated/extras/system/at.rb +2 -0
  532. data/lib/ansible/ruby/modules/generated/extras/system/capabilities.rb +1 -0
  533. data/lib/ansible/ruby/modules/generated/extras/system/cronvar.rb +1 -0
  534. data/lib/ansible/ruby/modules/generated/extras/system/crypttab.rb +1 -0
  535. data/lib/ansible/ruby/modules/generated/extras/system/debconf.rb +1 -0
  536. data/lib/ansible/ruby/modules/generated/extras/system/facter.rb +1 -0
  537. data/lib/ansible/ruby/modules/generated/extras/system/filesystem.rb +1 -0
  538. data/lib/ansible/ruby/modules/generated/extras/system/firewalld.rb +1 -0
  539. data/lib/ansible/ruby/modules/generated/extras/system/getent.rb +1 -0
  540. data/lib/ansible/ruby/modules/generated/extras/system/gluster_volume.rb +1 -0
  541. data/lib/ansible/ruby/modules/generated/extras/system/iptables.rb +1 -0
  542. data/lib/ansible/ruby/modules/generated/extras/system/kernel_blacklist.rb +1 -0
  543. data/lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb +1 -0
  544. data/lib/ansible/ruby/modules/generated/extras/system/locale_gen.rb +1 -0
  545. data/lib/ansible/ruby/modules/generated/extras/system/lvg.rb +1 -0
  546. data/lib/ansible/ruby/modules/generated/extras/system/lvol.rb +1 -0
  547. data/lib/ansible/ruby/modules/generated/extras/system/make.rb +1 -0
  548. data/lib/ansible/ruby/modules/generated/extras/system/modprobe.rb +1 -0
  549. data/lib/ansible/ruby/modules/generated/extras/system/ohai.rb +1 -0
  550. data/lib/ansible/ruby/modules/generated/extras/system/open_iscsi.rb +1 -0
  551. data/lib/ansible/ruby/modules/generated/extras/system/osx_defaults.rb +1 -0
  552. data/lib/ansible/ruby/modules/generated/extras/system/pam_limits.rb +1 -0
  553. data/lib/ansible/ruby/modules/generated/extras/system/puppet.rb +1 -0
  554. data/lib/ansible/ruby/modules/generated/extras/system/selinux_permissive.rb +1 -0
  555. data/lib/ansible/ruby/modules/generated/extras/system/seport.rb +1 -0
  556. data/lib/ansible/ruby/modules/generated/extras/system/solaris_zone.rb +1 -0
  557. data/lib/ansible/ruby/modules/generated/extras/system/svc.rb +1 -0
  558. data/lib/ansible/ruby/modules/generated/extras/system/ufw.rb +1 -0
  559. data/lib/ansible/ruby/modules/generated/extras/system/zfs.rb +1 -0
  560. data/lib/ansible/ruby/modules/generated/extras/web_infrastructure/deploy_helper.rb +2 -0
  561. data/lib/ansible/ruby/modules/generated/extras/web_infrastructure/ejabberd_user.rb +1 -0
  562. data/lib/ansible/ruby/modules/generated/extras/web_infrastructure/jboss.rb +1 -0
  563. data/lib/ansible/ruby/modules/generated/extras/web_infrastructure/jira.rb +1 -0
  564. data/lib/ansible/ruby/modules/generated/extras/web_infrastructure/taiga_issue.rb +3 -0
  565. data/lib/ansible/ruby/modules/generated/extras/windows/win_acl.rb +1 -0
  566. data/lib/ansible/ruby/modules/generated/extras/windows/win_acl_inheritance.rb +1 -0
  567. data/lib/ansible/ruby/modules/generated/extras/windows/win_chocolatey.rb +1 -0
  568. data/lib/ansible/ruby/modules/generated/extras/windows/win_dotnet_ngen.rb +4 -0
  569. data/lib/ansible/ruby/modules/generated/extras/windows/win_environment.rb +2 -0
  570. data/lib/ansible/ruby/modules/generated/extras/windows/win_file_version.rb +2 -0
  571. data/lib/ansible/ruby/modules/generated/extras/windows/win_firewall_rule.rb +1 -0
  572. data/lib/ansible/ruby/modules/generated/extras/windows/win_iis_virtualdirectory.rb +1 -0
  573. data/lib/ansible/ruby/modules/generated/extras/windows/win_iis_webapplication.rb +1 -0
  574. data/lib/ansible/ruby/modules/generated/extras/windows/win_iis_webapppool.rb +1 -0
  575. data/lib/ansible/ruby/modules/generated/extras/windows/win_iis_webbinding.rb +1 -0
  576. data/lib/ansible/ruby/modules/generated/extras/windows/win_iis_website.rb +1 -0
  577. data/lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb +1 -0
  578. data/lib/ansible/ruby/modules/generated/extras/windows/win_owner.rb +1 -0
  579. data/lib/ansible/ruby/modules/generated/extras/windows/win_package.rb +1 -0
  580. data/lib/ansible/ruby/modules/generated/extras/windows/win_regedit.rb +1 -0
  581. data/lib/ansible/ruby/modules/generated/extras/windows/win_regmerge.rb +6 -0
  582. data/lib/ansible/ruby/modules/generated/extras/windows/win_scheduled_task.rb +1 -0
  583. data/lib/ansible/ruby/modules/generated/extras/windows/win_share.rb +1 -0
  584. data/lib/ansible/ruby/modules/generated/extras/windows/win_timezone.rb +1 -0
  585. data/lib/ansible/ruby/modules/generated/extras/windows/win_unzip.rb +1 -0
  586. data/lib/ansible/ruby/modules/generated/extras/windows/win_updates.rb +1 -0
  587. data/lib/ansible/ruby/modules/generated/extras/windows/win_uri.rb +1 -0
  588. data/lib/ansible/ruby/modules/generated/extras/windows/win_webpicmd.rb +3 -0
  589. data/lib/ansible/ruby/modules/missing_file_stuff.rb +28 -0
  590. data/lib/ansible/ruby/version.rb +1 -1
  591. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac48e9bfedb879d6fb1753c6c2b79df842d98c4a
4
- data.tar.gz: 394d70113ee27243bd101164f9569c1f22b308a8
3
+ metadata.gz: 774c6ea1e1224e83f2f96c31ef3e09e1b45653e0
4
+ data.tar.gz: fc7955e393670388954e3ee9906418a0a2002bb6
5
5
  SHA512:
6
- metadata.gz: 196c4553ec3b99551e11afd1b283018ebeb95c08a2417665b91182a8a76b75214c574f1e05a2662d99f9c7c596d5d8ec8f49449ef2ae4ba05be5ee96e37cef07
7
- data.tar.gz: 5bfee2cc930f3326b80f360706c728e06aa03285e8bb79ef9eff4c6e411f9084754ada1efb08338052deca84d45da3d5c99bdb94d1557249a777b4a9845aaf4c
6
+ metadata.gz: 15abf355078fd9b9e808c07c95dd17d20cff26f11e5b9567c43f5c870b14734f190624556affc9fdf304e1b9e13a60ef1699dd8373e050861595f031054247fc
7
+ data.tar.gz: e012f982a9e6dd5727acb4675f37ad1ac1b3fc3b7878dcd6eeb3b23b47dd373f7a95b0d9c2a6ad6847a1e2deac71750ed30125889f71ce929d97fbf9606abfe3
@@ -7,21 +7,25 @@ module Ansible
7
7
  class Block < Unit
8
8
  def initialize
9
9
  super
10
- @tasks = []
11
- @temp_counter = 0
10
+ @task_builders = []
11
+ temp_counter = 0
12
+ @temp_counter_incrementer = lambda do
13
+ temp_counter += 1
14
+ end
12
15
  end
13
16
 
14
17
  def task(name, &block)
15
- @temp_counter += 1
16
- task_builder = Task.new name, Models::Task, @temp_counter
18
+ task_builder = Task.new name, Models::Task, @temp_counter_incrementer
17
19
  task_builder.instance_eval(&block)
18
- @tasks << task_builder._result
20
+ @task_builders << task_builder
21
+ task_builder._register
19
22
  end
20
23
 
21
24
  # allow for other attributes besides the module in any order
22
25
  def _result
26
+ tasks = @task_builders.map(&:_result)
23
27
  args = {
24
- tasks: @tasks
28
+ tasks: tasks
25
29
  }.merge @task_args
26
30
  block = Models::Block.new args
27
31
  block.validate!
@@ -62,7 +62,7 @@ module Ansible
62
62
  def block(&block)
63
63
  builder = Block.new
64
64
  builder.instance_eval(&block)
65
- @tasks << builder._result
65
+ @task_builders << builder
66
66
  end
67
67
 
68
68
  # allow any order
@@ -2,19 +2,15 @@ module Ansible
2
2
  module Ruby
3
3
  module DslBuilders
4
4
  class Result
5
- def initialize(counter, register_set)
6
- @name = "result_#{counter}"
7
- # Until the variable is utilized, we don't know if 'register' should be set, the supplied lambda
8
- # allows us to set register on the task
9
- @register_set = register_set
5
+ def initialize(name_fetcher)
6
+ @name_fetcher = name_fetcher
10
7
  end
11
8
 
12
9
  # we need to respond to everything, don't want super
13
10
  # rubocop:disable Style/MethodMissing
14
11
  def method_missing(id, *args)
15
- register_needed
16
12
  flat_args = args.map(&:inspect).map(&:to_s).join ', '
17
- "#{@name}.#{id}#{flat_args.empty? ? '' : "(#{flat_args})"}"
13
+ "#{name}.#{id}#{flat_args.empty? ? '' : "(#{flat_args})"}"
18
14
  end
19
15
  # rubocop:enable Style/MethodMissing
20
16
 
@@ -22,10 +18,15 @@ module Ansible
22
18
  true
23
19
  end
24
20
 
21
+ def to_s
22
+ name
23
+ end
24
+
25
25
  private
26
26
 
27
- def register_needed
28
- @register_set[@name]
27
+ def name
28
+ # Don't want to assign a name until we actually use a variable
29
+ @name ||= @name_fetcher.call
29
30
  end
30
31
  end
31
32
  end
@@ -8,19 +8,29 @@ module Ansible
8
8
  module Ruby
9
9
  module DslBuilders
10
10
  class Task < Unit
11
- def initialize(name, context, temp_counter)
11
+ def initialize(name, context, temp_counter_inc)
12
12
  super()
13
13
  @name = name
14
14
  @context = context
15
15
  @module = nil
16
16
  @inclusion = nil
17
- @temp_counter = temp_counter
17
+ # Until the variable is utilized, we don't know if 'register' should be set, the supplied lambda
18
+ name_fetcher = lambda do
19
+ name = "result_#{temp_counter_inc.call}"
20
+ @task_args[:register] = name
21
+ name
22
+ end
23
+ @register = Result.new name_fetcher
18
24
  end
19
25
 
20
26
  def no_log(value)
21
27
  @task_args[:no_log] = value
22
28
  end
23
29
 
30
+ def connection(value)
31
+ @task_args[:connection] = value
32
+ end
33
+
24
34
  def changed_when(clause)
25
35
  @task_args[:changed_when] = clause
26
36
  end
@@ -58,12 +68,16 @@ module Ansible
58
68
  !@module || super
59
69
  end
60
70
 
71
+ def _register
72
+ @register
73
+ end
74
+
61
75
  # allow for other attributes besides the module in any order
62
76
  def _result
63
77
  args = {
64
- module: @module,
65
78
  name: @name
66
79
  }.merge @task_args
80
+ args[:module] = @module if @module
67
81
  args[:inclusion] = @inclusion if @inclusion
68
82
  task = @context.new args
69
83
  # Quick feedback if the type is wrong, etc.
@@ -78,7 +92,10 @@ module Ansible
78
92
  private
79
93
 
80
94
  def _process_method(id, *args, &block)
81
- _check_context if id == :ansible_include
95
+ if id == :ansible_include
96
+ @inclusion = _ansible_include(*args, &block)
97
+ return
98
+ end
82
99
  mcb = ModuleCall.new
83
100
  # only 1 module allowed per task, give a good error message
84
101
  if @module && mcb.respond_to?(id)
@@ -89,15 +106,9 @@ module Ansible
89
106
  @module = mcb._result
90
107
  end
91
108
 
92
- def _check_context
93
- raise "Can't call inclusion inside a handler(yet), only in plays/handlers" if @context == Models::Handler
94
- raise "Can't call inclusion inside a task, only in plays/handlers"
95
- end
96
-
97
109
  def method_missing_return(_id, _result, *_args)
98
- # method_missing only used for modules here
99
- # Keep our register variables unique
100
- Result.new(@temp_counter, ->(name) { @task_args[:register] = name })
110
+ # Allow module call to return the register vsriable
111
+ @register
101
112
  end
102
113
  end
103
114
  end
@@ -9,9 +9,12 @@ module Ansible
9
9
  class Tasks < Base
10
10
  def initialize(context)
11
11
  @context = context
12
- @tasks = []
12
+ @task_builders = []
13
13
  @includes = []
14
- @temp_counter = 0
14
+ temp_counter = 0
15
+ @temp_counter_incrementer = lambda do
16
+ temp_counter += 1
17
+ end
15
18
  end
16
19
 
17
20
  def ansible_include(filename, &block)
@@ -20,7 +23,8 @@ module Ansible
20
23
 
21
24
  # allow multiple tasks, etc.
22
25
  def _result
23
- Models::Tasks.new items: @tasks,
26
+ tasks = @task_builders.map(&:_result)
27
+ Models::Tasks.new items: tasks,
24
28
  inclusions: @includes
25
29
  end
26
30
 
@@ -69,10 +73,14 @@ module Ansible
69
73
  def _handle(name, &block)
70
74
  model = _context[:model]
71
75
  raise "Model not configured for #{@context}" unless model
72
- @temp_counter += 1
73
- task_builder = Task.new name, model, @temp_counter
76
+ task_builder = Task.new name, model, @temp_counter_incrementer
74
77
  task_builder.instance_eval(&block)
75
- @tasks << task_builder._result
78
+ @last_variable = task_builder._register
79
+ @task_builders << task_builder
80
+ end
81
+
82
+ def method_missing_return(*)
83
+ @last_variable
76
84
  end
77
85
  end
78
86
  end
@@ -16,6 +16,18 @@ module Ansible
16
16
  end
17
17
 
18
18
  class << self
19
+ def remove_existing_validations(attr)
20
+ options = attr_option(attr)
21
+ options.clear
22
+ _validators.delete attr
23
+ callbacks = send(:get_callbacks, :validate)
24
+ for_this_att = callbacks.select do |callback|
25
+ filter = callback.filter
26
+ filter.respond_to?(:attributes) && filter.attributes == [attr]
27
+ end
28
+ for_this_att.each { |callback| callbacks.delete callback }
29
+ end
30
+
19
31
  def attr_options
20
32
  @attr_options ||= begin
21
33
  # need parent attribute info
@@ -1,4 +1,6 @@
1
1
  require 'ansible/ruby/models/unit'
2
+ require 'ansible/ruby/models/inclusion'
3
+ require 'ansible/ruby/modules/base'
2
4
 
3
5
  module Ansible
4
6
  module Ruby
@@ -7,7 +9,10 @@ module Ansible
7
9
  attribute :name
8
10
  validates :name, presence: true, type: String
9
11
  attribute :module
10
- validates :module, presence: true
12
+ validates :module, type: Ansible::Ruby::Modules::Base
13
+ attribute :inclusion
14
+ validates :inclusion, type: Inclusion
15
+ validate :inclusion_module
11
16
  attribute :changed_when
12
17
  validates :changed_when, type: String
13
18
  attribute :failed_when
@@ -25,16 +30,21 @@ module Ansible
25
30
  validates :async, type: Integer
26
31
  attribute :poll
27
32
  validates :poll, type: Integer
33
+ attribute :connection
34
+ validates :connection,
35
+ allow_nil: true,
36
+ inclusion: { in: [:local, :docker, :ssh], message: '%{value} needs to be :local, :docker, or :ssh' }
28
37
 
29
38
  def to_h
30
39
  result = super
31
- # Module gets referenced by name
32
- mod = result.delete :module
40
+ # Module gets referenced by name, may not have a module though
41
+ mod_or_include = @inclusion ? :inclusion : :module
42
+ flatten = result.delete(mod_or_include) || {}
33
43
  # Module traditionally goes right after name, so rebuilding hash
34
44
  new_result = {
35
45
  name: result.delete(:name)
36
46
  }
37
- new_result.merge! mod
47
+ new_result.merge! flatten
38
48
  result.each do |key, value|
39
49
  new_result[key] = value
40
50
  end
@@ -43,6 +53,12 @@ module Ansible
43
53
 
44
54
  private
45
55
 
56
+ # :reek:NilCheck - ^ doesn't work with falsey, you would have to overload the operator
57
+ def inclusion_module
58
+ errors.add :module,
59
+ 'You must either use an include or a module but not both!' unless @inclusion.nil? ^ @module.nil?
60
+ end
61
+
46
62
  def loop_and_dict
47
63
  errors.add :with_items, 'Cannot use both with_items and with_dict!' if with_items && with_dict
48
64
  end
@@ -7,7 +7,8 @@ ansible_mod.autoload(:Cloudformation, 'ansible/ruby/modules/generated/core/cloud
7
7
  ansible_mod.autoload(:Ec2, 'ansible/ruby/modules/generated/core/cloud/amazon/ec2')
8
8
  ansible_mod.autoload(:Ec2_ami, 'ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami')
9
9
  ansible_mod.autoload(:Ec2_ami_find, 'ansible/ruby/modules/generated/core/cloud/amazon/ec2_ami_find')
10
- ansible_mod.autoload(:Ec2_asg, 'ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg')
10
+ # Using custom module
11
+ ansible_mod.autoload(:Ec2_asg, 'ansible/ruby/modules/custom/cloud/core/amazon/ec2_asg')
11
12
  ansible_mod.autoload(:Ec2_eip, 'ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip')
12
13
  ansible_mod.autoload(:Ec2_elb, 'ansible/ruby/modules/generated/core/cloud/amazon/ec2_elb')
13
14
  ansible_mod.autoload(:Ec2_elb_lb, 'ansible/ruby/modules/generated/core/cloud/amazon/ec2_elb_lb')
@@ -53,7 +54,8 @@ ansible_mod.autoload(:Digital_ocean, 'ansible/ruby/modules/generated/core/cloud/
53
54
  ansible_mod.autoload(:Digital_ocean_domain, 'ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_domain')
54
55
  ansible_mod.autoload(:Digital_ocean_sshkey, 'ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey')
55
56
  ansible_mod.autoload(:Docker, 'ansible/ruby/modules/generated/core/cloud/docker/docker')
56
- ansible_mod.autoload(:Docker_container, 'ansible/ruby/modules/generated/core/cloud/docker/docker_container')
57
+ # Using custom module
58
+ ansible_mod.autoload(:Docker_container, 'ansible/ruby/modules/custom/cloud/core/docker/docker_container')
57
59
  ansible_mod.autoload(:Docker_image, 'ansible/ruby/modules/generated/core/cloud/docker/docker_image')
58
60
  ansible_mod.autoload(:Docker_image_facts, 'ansible/ruby/modules/generated/core/cloud/docker/docker_image_facts')
59
61
  ansible_mod.autoload(:Docker_login, 'ansible/ruby/modules/generated/core/cloud/docker/docker_login')
@@ -137,21 +139,26 @@ ansible_mod.autoload(:Postgresql_privs, 'ansible/ruby/modules/generated/core/dat
137
139
  ansible_mod.autoload(:Postgresql_user, 'ansible/ruby/modules/generated/core/database/postgresql/postgresql_user')
138
140
  ansible_mod.autoload(:Acl, 'ansible/ruby/modules/generated/core/files/acl')
139
141
  ansible_mod.autoload(:Assemble, 'ansible/ruby/modules/generated/core/files/assemble')
140
- ansible_mod.autoload(:Copy, 'ansible/ruby/modules/generated/core/files/copy')
141
- ansible_mod.autoload(:Fetch, 'ansible/ruby/modules/generated/core/files/fetch')
142
- ansible_mod.autoload(:File, 'ansible/ruby/modules/generated/core/files/file')
142
+ # Using custom module
143
+ ansible_mod.autoload(:Copy, 'ansible/ruby/modules/custom/files/copy')
144
+ # Using custom module
145
+ ansible_mod.autoload(:Fetch, 'ansible/ruby/modules/custom/files/fetch')
146
+ # Using custom module
147
+ ansible_mod.autoload(:File, 'ansible/ruby/modules/custom/files/file')
143
148
  ansible_mod.autoload(:Find, 'ansible/ruby/modules/generated/core/files/find')
144
149
  ansible_mod.autoload(:Ini_file, 'ansible/ruby/modules/generated/core/files/ini_file')
145
150
  ansible_mod.autoload(:Lineinfile, 'ansible/ruby/modules/generated/core/files/lineinfile')
146
151
  ansible_mod.autoload(:Replace, 'ansible/ruby/modules/generated/core/files/replace')
147
152
  ansible_mod.autoload(:Stat, 'ansible/ruby/modules/generated/core/files/stat')
148
153
  ansible_mod.autoload(:Synchronize, 'ansible/ruby/modules/generated/core/files/synchronize')
149
- ansible_mod.autoload(:Template, 'ansible/ruby/modules/generated/core/files/template')
154
+ # Using custom module
155
+ ansible_mod.autoload(:Template, 'ansible/ruby/modules/custom/files/template')
150
156
  ansible_mod.autoload(:Unarchive, 'ansible/ruby/modules/generated/core/files/unarchive')
151
157
  ansible_mod.autoload(:Xattr, 'ansible/ruby/modules/generated/core/files/xattr')
152
158
  ansible_mod.autoload(:Add_host, 'ansible/ruby/modules/generated/core/inventory/add_host')
153
159
  ansible_mod.autoload(:Group_by, 'ansible/ruby/modules/generated/core/inventory/group_by')
154
- ansible_mod.autoload(:Get_url, 'ansible/ruby/modules/generated/core/network/basics/get_url')
160
+ # Using custom module
161
+ ansible_mod.autoload(:Get_url, 'ansible/ruby/modules/custom/network/basics/get_url')
155
162
  ansible_mod.autoload(:Slurp, 'ansible/ruby/modules/generated/core/network/basics/slurp')
156
163
  ansible_mod.autoload(:Uri, 'ansible/ruby/modules/generated/core/network/basics/uri')
157
164
  ansible_mod.autoload(:Cl_bond, 'ansible/ruby/modules/generated/core/network/cumulus/cl_bond')
@@ -230,7 +237,8 @@ ansible_mod.autoload(:Async_status, 'ansible/ruby/modules/generated/core/utiliti
230
237
  ansible_mod.autoload(:Debug, 'ansible/ruby/modules/generated/core/utilities/logic/debug')
231
238
  ansible_mod.autoload(:Fail, 'ansible/ruby/modules/generated/core/utilities/logic/fail')
232
239
  ansible_mod.autoload(:Pause, 'ansible/ruby/modules/generated/core/utilities/logic/pause')
233
- ansible_mod.autoload(:Set_fact, 'ansible/ruby/modules/generated/core/utilities/logic/set_fact')
240
+ # Using custom module
241
+ ansible_mod.autoload(:Set_fact, 'ansible/ruby/modules/custom/utilities/logic/set_fact')
234
242
  ansible_mod.autoload(:Wait_for, 'ansible/ruby/modules/generated/core/utilities/logic/wait_for')
235
243
  ansible_mod.autoload(:Apache2_module, 'ansible/ruby/modules/generated/core/web_infrastructure/apache2_module')
236
244
  ansible_mod.autoload(:Django_manage, 'ansible/ruby/modules/generated/core/web_infrastructure/django_manage')
@@ -0,0 +1,17 @@
1
+ # VALIDATED_CHECKSUM: ke2ZdaLvxoGxPtqdOxXDJIIz+sG3choGauiyWbayeSQ=
2
+ # See LICENSE.txt for license
3
+
4
+ require 'ansible/ruby/modules/generated/core/cloud/amazon/ec2_asg'
5
+
6
+ module Ansible
7
+ module Ruby
8
+ module Modules
9
+ class Ec2_asg
10
+ remove_existing_validations :termination_policies
11
+ # @return [:OldestInstance, :NewestInstance, :OldestLaunchConfiguration, :ClosestToNextInstanceHour, :Default, nil] An ordered list of criteria used for selecting instances to be removed from the Auto Scaling group when reducing capacity.,For 'Default', when used to create a new autoscaling group, the "Default" value is used. When used to change an existent autoscaling group, the current termination policies are mantained
12
+ attribute :termination_policies
13
+ validates :termination_policies, type: Array
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,41 @@
1
+ # VALIDATED_CHECKSUM: HoHvaFYbnOUeU03yrUaG8NMWRHEC9ofwjEVNquhM7Dw=
2
+ # See LICENSE.txt for license
3
+
4
+ require 'ansible/ruby/modules/generated/core/cloud/docker/docker_container'
5
+
6
+ module Ansible
7
+ module Ruby
8
+ module Modules
9
+ class Docker_container
10
+ remove_existing_validations :volumes
11
+ validates :volumes, type: Hash
12
+ remove_existing_validations :network_mode
13
+ validates :network_mode, type: String
14
+
15
+ def to_h
16
+ result = super
17
+ data = result[:docker_container]
18
+ if data.include? :volumes
19
+ data[:volumes] = transform_volumes data[:volumes]
20
+ end
21
+ result
22
+ end
23
+
24
+ private
25
+
26
+ def transform_volumes(input)
27
+ input.map do |host_path, info|
28
+ image_path = if info.is_a? Hash
29
+ flags = info[:flags]
30
+ path = info[:path]
31
+ [path, flags].join ':'
32
+ else
33
+ info
34
+ end
35
+ [host_path, image_path].join ':'
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -1,7 +1,6 @@
1
+ # VALIDATED_CHECKSUM: HlJ7AWUxwcrY8Vt+1L/V59AdmCQdJO3Ts8bbemlo4eY=
1
2
  # See LICENSE.txt for license
2
3
 
3
- # VALIDATED_CHECKSUM: JQvTPI3GbhVRRPRvDgbzLeeuYLABoDT7ogPPA2odrHs=
4
-
5
4
  require 'ansible/ruby/modules/free_form'
6
5
  require 'ansible/ruby/modules/generated/core/commands/command'
7
6
 
@@ -1,4 +1,4 @@
1
- # VALIDATED_CHECKSUM: aHiGPJ0CGZvoBX3EPdvSwymkBZ1qlHyXEBrLfi27C6A=
1
+ # VALIDATED_CHECKSUM: btGcDE59YLyMKJs2cIrGEUILUgFMG3ChnfFburRtSYg=
2
2
  # See LICENSE.txt for license
3
3
 
4
4
  require 'ansible/ruby/modules/free_form'
@@ -1,4 +1,4 @@
1
- # VALIDATED_CHECKSUM: RhHDiVtIFNT3I5ESwjmmuJBl8pv6qi2oIyGxPsjxmpE=
1
+ # VALIDATED_CHECKSUM: 9JallgUysKJIyHfAPqGtC5OEbyuq4elfgTdiAnipb3M=
2
2
  # See LICENSE.txt for license
3
3
 
4
4
  require 'ansible/ruby/modules/free_form'
@@ -1,4 +1,4 @@
1
- # VALIDATED_CHECKSUM: hbLqxsuZqxyO5SXR1JlPnhnNc6lrDZBDWwhN+7UNW7Q=
1
+ # VALIDATED_CHECKSUM: bL1wWjIPPEipr7Ri9/KKydfJ3w5S0A1ezC2BTh9hc8I=
2
2
  # See LICENSE.txt for license
3
3
 
4
4
  require 'ansible/ruby/modules/free_form'
@@ -0,0 +1,15 @@
1
+ # VALIDATED_CHECKSUM: xP6DW+ebKQO0s/qZz8E8aOeRWZtmT6jaPtrvAtsQwyU=
2
+ # see LICENSE.txt in project root
3
+
4
+ require 'ansible/ruby/modules/generated/core/files/copy'
5
+ require 'ansible/ruby/modules/missing_file_stuff'
6
+
7
+ module Ansible
8
+ module Ruby
9
+ module Modules
10
+ class Copy
11
+ include MissingFileStuff
12
+ end
13
+ end
14
+ end
15
+ end