Guillaume Coré
2017-10-20 59a29445930a08b32f0c193218d790896a0fc1a8
refs
author Guillaume Coré <gucore@redhat.com>
Friday, October 20, 2017 11:00 +0200
committer Guillaume Coré <gucore@redhat.com>
Friday, October 20, 2017 11:00 +0200
commit59a29445930a08b32f0c193218d790896a0fc1a8
tree 6b6354aeb6aab4c16eb707af3386c32c8bc8b8bc tree | zip | gz
parent e0885c453b86b390d2f23ccb9f68e3652fa95495 view | diff
fix ocp-workshop report when user has 'become=True' in its ansible config

The report generation failed for openshiftbu-mgr user:

TASK [get repo version used to deploy] *****************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
to retry, use: --limit @/tmp/ocp-workshop-xxtestnoe3xx/ansible_agnostic_deployer/ansible/main.retry

This is because become=True is set in ~/.ansible.cfg.

Force 'become: false' for 'localhost' play.
1 files modified
1 ■■■■ changed files
ansible/configs/ocp-workshop/post_software.yml 1 ●●●● diff | view | raw | blame | history