f5devcentral / ansible-role-f5_atc_deploy_declaration

Ansible role used to deploy declaratives to F5 Automated Tool Chain services: AS3, DO, and TS
Apache License 2.0
7 stars 11 forks source link

Several tasks need to be delegated to localhost #36

Open tabernarious opened 4 years ago

tabernarious commented 4 years ago

Unless I'm doing something wrong, or do not understand how this should work, no tasks should be run on the BIG-IP via SSH. In order to do a basic AS3 declaration I had to add delegate_to: localhost to three tasks.

In my lab, where I'm starting to play with all this, I do not have ssh keys configured between my Ansible controller and my BIG-IP, so these three tasks failed with this error:

fatal: [bigip102]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,keyboard-interactive,hostbased).", "unreachable": true}

Editing the role locally and re-running fixed this. To note, tasks/authentication.yaml already has delegate_to: localhost so the "Get authentication token" and "Test authentication" tasks worked fine before the play aborted.

tabernarious commented 4 years ago

While I haven't tested them all, it looks like all of these tasks need delegate_to: localhost

tabernarious commented 4 years ago

I am relatively new to GitHub, particularly the automated testing. I don't understand why "All checks have failed". Looking into the logs it appears to be failing during "pre-validation". Can someone confirm this?

tabernarious commented 3 years ago

I committed and pushed a fix for the Travis CI build failure, which is showing in my branch, but is not showing here. Maybe it just takes time to trigger the updates...?

UPDATE: It just took some time. Branch updated and all checks have passed.

https://github.com/tabernarious/ansible-role-f5_atc_deploy_declaration/tree/patch-1