https - How to provide authentication for an ansible azure template link -
i'm using ansible deploy azure template, using azure_rm_deployment module. template can either provided inline or via template_link parameter. want provide template link file held in bitbucket accoount.
here's have:
- name: install hosts: localhost vars_files: [my-vars.yaml] tasks: - name: deploy installation template azure_rm_deployment: state: present subscription_id: "{{subscription_id}}" tenant: "{{tenant}}" client_id: "{{client_id}}" secret: "{{secret}}" resource_group_name: "{{rg}}" location: "{{location}}" template_link: "{{template_link}}"
how can authenticate https link? if put username , password in url:
template_link: "https://azuremanager%40mycompany.com:mypassword@bitbucket.org/azuremanager/ansible/downloads/install-all.txt"
i error ansible:
"deployment failed status code: 400 , message: deployment template parse failed: 'unexpected character encountered while parsing value: <. path '', line 0, position 0.'."
this because i'm being redirected sign in page, , ansible receiving html rather expected json. how can secure template_links provided? there way of getting ansible follow redirect? or answer use obscure url template?
Comments
Post a Comment