Rename modules from plural to singular (#27185)

* First batch of modules renamed from plural to singular

Related to this proposal: https://github.com/ansible/proposals/issues/10

* Emit rename deprication warning

* Update legacy-files.txt and skip.txt to reflect new names
This commit is contained in:
Sam Doran 2017-08-14 16:35:15 -04:00 committed by GitHub
commit 68060002e8
32 changed files with 144 additions and 71 deletions

View file

@ -0,0 +1 @@
ec2_vpc_dhcp_option.py

View file

@ -0,0 +1 @@
ec2_vpc_dhcp_option_facts.py

View file

@ -13,7 +13,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
DOCUMENTATION = """
---
module: ec2_vpc_dhcp_options
module: ec2_vpc_dhcp_option
short_description: Manages DHCP Options, and can ensure the DHCP options for the given VPC match what's
requested
description:
@ -140,7 +140,7 @@ changed:
EXAMPLES = """
# Completely overrides the VPC DHCP options associated with VPC vpc-123456 and deletes any existing
# DHCP option set that may have been attached to that VPC.
- ec2_vpc_dhcp_options:
- ec2_vpc_dhcp_option:
domain_name: "foo.example.com"
region: us-east-1
dns_servers:
@ -160,7 +160,7 @@ EXAMPLES = """
# Ensure the DHCP option set for the VPC has 10.0.0.4 and 10.0.1.4 as the specified DNS servers, but
# keep any other existing settings. Also, keep the old DHCP option set around.
- ec2_vpc_dhcp_options:
- ec2_vpc_dhcp_option:
region: us-east-1
dns_servers:
- "{{groups['dns-primary']}}"
@ -172,7 +172,7 @@ EXAMPLES = """
## Create a DHCP option set with 4.4.4.4 and 8.8.8.8 as the specified DNS servers, with tags
## but do not assign to a VPC
- ec2_vpc_dhcp_options:
- ec2_vpc_dhcp_option:
region: us-east-1
dns_servers:
- 4.4.4.4
@ -182,7 +182,7 @@ EXAMPLES = """
Environment: Test
## Delete a DHCP options set that matches the tags and options specified
- ec2_vpc_dhcp_options:
- ec2_vpc_dhcp_option:
region: us-east-1
dns_servers:
- 4.4.4.4
@ -193,7 +193,7 @@ EXAMPLES = """
state: absent
## Associate a DHCP options set with a VPC by ID
- ec2_vpc_dhcp_options:
- ec2_vpc_dhcp_option:
region: us-east-1
dhcp_options_id: dopt-12345678
vpc_id: vpc-123456

View file

@ -13,7 +13,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.0',
DOCUMENTATION = '''
---
module: ec2_vpc_dhcp_options_facts
module: ec2_vpc_dhcp_option_facts
short_description: Gather facts about dhcp options sets in AWS
description:
- Gather facts about dhcp options sets in AWS
@ -43,13 +43,13 @@ EXAMPLES = '''
# # Note: These examples do not set authentication details, see the AWS Guide for details.
- name: Gather facts about all DHCP Option sets for an account or profile
ec2_vpc_dhcp_options_facts:
ec2_vpc_dhcp_option_facts:
region: ap-southeast-2
profile: production
register: dhcp_facts
- name: Gather facts about a filtered list of DHCP Option sets
ec2_vpc_dhcp_options_facts:
ec2_vpc_dhcp_option_facts:
region: ap-southeast-2
profile: production
filters:
@ -57,7 +57,7 @@ EXAMPLES = '''
register: dhcp_facts
- name: Gather facts about a specific DHCP Option set by DhcpOptionId
ec2_vpc_dhcp_options_facts:
ec2_vpc_dhcp_option_facts:
region: ap-southeast-2
profile: production
DhcpOptionsIds: dopt-123fece2