Create playbook to print all hosts

This commit is contained in:
Ben Partridge
2020-03-25 11:58:45 +11:00
parent 2343adbb20
commit 15e4beaabe
2 changed files with 10 additions and 2 deletions

8
aws_print_host.yml Normal file
View File

@@ -0,0 +1,8 @@
---
- hosts: all
become: true
serial: 1
tasks:
- debug:
msg: System {{ inventory_hostname }} has uuid {{ ansible_product_uuid }}

View File

@@ -11,6 +11,6 @@
plugin: aws_ec2 plugin: aws_ec2
filters: filters:
tag:aws:autoscaling:groupName: your_autoscaling_group tag:aws:autoscaling:groupName: inno-bpartridge-ansible-anywhere-jira-cluster
regions: regions:
- your_deployment_region - ap-southeast-2