What tagging conventions make cloud inventory clean?
BeginnerProductionAWX, AAP and Cloud Integration
Answer
Agree on a small, mandatory tag set and turn it into groups with keyed_groups:
| Tag | Example | Ansible group |
|---|---|---|
env |
prod |
env_prod |
role |
web |
role_web |
app |
checkout |
app_checkout |
owner |
team-payments |
used for notifications |
ansible_managed |
true |
filter: only these are inventoried |
Enforce the tags in Terraform modules and with AWS tag policies or SCPs, because one instance with Env=Prod instead of env=prod lands in the wrong group or none. Filter the inventory on ansible_managed=true so random experiments never receive production config.
More on AWX, AAP and Cloud Integration
AWX or Red Hat Ansible Automation Platform: what is the difference and what do you pay for?BeginnerWhat are the core objects in AWX and how do they fit together?BeginnerHow do you manage AWX configuration as code?IntermediateHow do custom credential types work in AWX?AdvancedHow do you connect AWX to an external secrets manager?IntermediateHow do you trigger AWX jobs from CI or other systems?Intermediate