Skip to content

Instantly share code, notes, and snippets.

@myh-st
Created February 3, 2021 08:34
Show Gist options
  • Save myh-st/deb02b18853f3d70bc7d5228a57dff1d to your computer and use it in GitHub Desktop.
Save myh-st/deb02b18853f3d70bc7d5228a57dff1d to your computer and use it in GitHub Desktop.
export/import awx inventory
pip install ansible-tower-cli
tower-cli config username admin
tower-cli config password <PASSWORD>
tower-cli config verify_ssl False
tower-cli config
tower-cli job list
tower-cli config host http://<IP>:80
## Backup AWX all objects ##
tower-cli receive --all > tower-backup.json
## Import AWX ##
tower-cli send < tower-backup.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment