Last active
February 6, 2021 06:02
-
-
Save Inderpreet90/69f4fffdf87f85476d2cb6b9f424a85e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example using filters | |
plugin: aws_ec2 | |
# Populate inventory with instances in these regions | |
regions: | |
- us-east-1 | |
filters: | |
# All dev and QA hosts | |
tag:Environment: | |
- dev | |
- qa | |
# Ignores 403 errors rather than failing | |
strict_permissions: False | |
# Note: I(hostnames) sets the inventory_hostname. To modify ansible_host without modifying | |
# inventory_hostname use compose (see example below). | |
hostnames: | |
- ip-address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment