Open tabernarious opened 4 years ago
While I haven't tested them all, it looks like all of these tasks need delegate_to: localhost
tasks/main.yml
- Download file if url specified
tasks/main.yml
- Verify "{{ atc_service }}" service is available, and collect service info
tasks/main.yml
- check as3 declaration and include teem data if needed
tasks/main.yml
- Check if BIG-IQ (ignore if failed)
tasks/declare.yml
- {{ atc_method }} TS declaration
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?
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
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 hasdelegate_to: localhost
so the "Get authentication token" and "Test authentication" tasks worked fine before the play aborted.