Skip to content

Commit

Permalink
Merge pull request #39 from davdunc/issue_25
Browse files Browse the repository at this point in the history
Add support for ec2_instance and ec2_instance_info.
  • Loading branch information
k1LoW authored Jan 3, 2021
2 parents cf6b8f0 + 57d90c8 commit c2194ba
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions ansible.el
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"docker_login" "docker_service" "dpkg_selections" "dynamodb_table" "easy_install"
"ec2" "ec2_ami" "ec2_ami_copy" "ec2_ami_find" "ec2_asg" "ec2_eip" "ec2_elb"
"ec2_elb_facts" "ec2_elb_lb" "ec2_eni" "ec2_eni_facts" "ec2_facts" "ec2_group"
"ec2_instance" "ec2_instance_info"
"ec2_key" "ec2_lc" "ec2_metric_alarm" "ec2_remote_facts" "ec2_scaling_policy"
"ec2_snapshot" "ec2_snapshot_facts" "ec2_tag" "ec2_vol" "ec2_vol_facts" "ec2_vpc"
"ec2_vpc_dhcp_options" "ec2_vpc_igw" "ec2_vpc_net" "ec2_vpc_net_facts"
Expand Down
17 changes: 16 additions & 1 deletion dict/ansible
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
tower_callback
termination_protection
tenancy
security_token
purge_tags
launch_template
instance_role
instance_initiated_shutdown_behavior
ec2_url
detailed_monitoring
debug_botocore_endpoint_logs
cpu_credit_specification
cpu_options
stack_name
disable_rollback
template_parameters
Expand Down Expand Up @@ -71,6 +84,7 @@ purge_listeners
zones
purge_zones
security_group_ids
security_group
health_check
subnets
purge_subnets
Expand Down Expand Up @@ -521,6 +535,7 @@ enabled
runlevel
arguments
filter
filters
fact_path
ignoreerrors
reload
Expand Down Expand Up @@ -867,4 +882,4 @@ issuetype
issue
status
assignee
fields
fields
6 changes: 6 additions & 0 deletions snippets/text-mode/ansible/amazon/ec2_instance
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# name : create, terminate, start or stop an instance in ec2, return instanceid
# key : ec2_instance
# condition: ansible
# --
- name: ${1:create, terminate, start or stop an instance in ec2, return instanceid}
ec2_instance: instance_type=$2 image_id=$3 region=$4 $0
6 changes: 6 additions & 0 deletions snippets/text-mode/ansible/amazon/ec2_instance_info
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# name : Gather information about ec2 instances in AWS.
# key : ec2_instance_info
# condition: ansible
# --
- name: ${1:Gathers facts about remote hosts within ec2 (aws)}
ec2_facts: $0

0 comments on commit c2194ba

Please sign in to comment.