I am ble to take backup of AWS template and restore on same server for awx cli but when i tried to other awx cli its got failed .Can please any one suggest on this
I’d suggest you give us some clues as to what’s going wrong. Just posted it failed isn’t helpful!
I have taken full backup from towercli and when I restore on the same Awz it’s works but when I restored on other server the template and work flow is not restored completely
What is missing
Password is not coming and tempalte is not working
If you’re talking about credentials that’s normal as well as in job template. You can use tower_modules to keep your tower configuration as code to restore
Hello Wein ,
From Tower cli to get the template file and job in full backup and when i restored but i am not getting password .
As per our last discussion you told to check with tower module but i didnt find any thing there can you please help me on this
I used all the tower modules and created a playbook to create my awx infrastructure. I use vars for each resource and thus loos through my items for each task.
I have been through this exercise. Works a treat. I just redefine what my vars are and the playbook makes the necessary changes
do you have any link for this tower module
Mind you. You can’t export from the cli the credential and expect it to export the entire credential. I spent the time to create the vars.yml with my details in it and then vaulted it.
can you please dont mind if you share tower module link or vars.yaml
Can’t really show you the vars because they hold my credential info. But to start with try having a look at
https://docs.ansible.com/ansible/latest/modules/tower_credential_module.html
And thing starting with tower in that page is what you are looking for
thanks mate is tower cli and tower module is same
Kind of. Tower modules use tower-cli to get the work done
Yes thanks… Also still not clear about how to get back up of credential
You cannot export the full credentials. With use name and passwords. What you do is create a playbook to generate those configuration for you.
Write a simple playbook creating a single credential resource defining username and password. That’s essentially what I am doing.
Can u please share me sample of that playbook