The install instructions say:
“After a few minutes, the new AWX instance will be deployed. One can look at the operator pod logs in order to know where the installation process is at. This can be done by running the following command: kubectl logs -f deployments/awx-operator.”
But let’s say I want to automate a deployment. I can’t just keep spamming the “kubernetes logs” command in an automated deployment.
How do I wait for the deployment to finish?
Can you test the url for A particular output in the text using get-url?
I probably can. However, it would be ideal to use the actual kubernetes state over URL reachability
If you are familiar with python then yoy can write a custom module that can loop through the kubernetes logs or other logic and then have that executed in an ansible way
But wait, doesn’t the Status.Conditions.Reason property of the AWX resource change to “Successful” when the entire thing is deployed? Wouldn’t that be a much better thing to operate on?
As I said. Perhaps a custom python ansible task would suit you which will account for :
or ‘other logic’. If you know python you can write logic to accommodate for exactly that
(attachments)