From 15e4beaabe704cc73660c9f24ac3aa8926e9629d Mon Sep 17 00:00:00 2001 From: Ben Partridge Date: Wed, 25 Mar 2020 11:58:45 +1100 Subject: [PATCH] Create playbook to print all hosts --- aws_print_host.yml | 8 ++++++++ inv/atl_cluster_aws_ec2.yml | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 aws_print_host.yml diff --git a/aws_print_host.yml b/aws_print_host.yml new file mode 100644 index 0000000..de292af --- /dev/null +++ b/aws_print_host.yml @@ -0,0 +1,8 @@ +--- +- hosts: all + become: true + serial: 1 + + tasks: + - debug: + msg: System {{ inventory_hostname }} has uuid {{ ansible_product_uuid }} diff --git a/inv/atl_cluster_aws_ec2.yml b/inv/atl_cluster_aws_ec2.yml index 01b36ac..eafdc5b 100644 --- a/inv/atl_cluster_aws_ec2.yml +++ b/inv/atl_cluster_aws_ec2.yml @@ -11,6 +11,6 @@ plugin: aws_ec2 filters: - tag:aws:autoscaling:groupName: your_autoscaling_group + tag:aws:autoscaling:groupName: inno-bpartridge-ansible-anywhere-jira-cluster regions: - - your_deployment_region \ No newline at end of file + - ap-southeast-2 \ No newline at end of file