New answers tagged

1

You seem to be passing force_basic_auth: yes but no user, nor password. Example from the Ansible docs: - name: Create a JIRA issue uri: url: https://your.jira.example.com/rest/api/2/issue/ method: POST user: your_username password: your_pass body: "{{ lookup('file','issue.json') }}" force_basic_auth: yes status_code: ...


1

Judging by the documentation, the result of your run multiple commands on remote nodes block is an array. You're writing only the first item of that array with {{ print_output.stdout[0] }}. The [0] here is the pointer to the first element of the array. Try removing it and see if the result fits your needs. UPD: Use this to write several strings into a file: -...


1

this feature was recently merged to ansible devel branch. It would be posible using: - import_playbook: testns.testcoll.default_collection_playbook


Top 50 recent answers are included