diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-07-29 21:50:30 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-07-29 21:50:30 +0300 |
commit | 074edb7f09095df646aa5da7483b601317498857 (patch) | |
tree | 1c9116662f94be3b768701f090f9adda16068a81 | |
parent | 734971bbaafdf630cb9487fa05b3449f797bd1fb (diff) | |
download | vmdb2-074edb7f09095df646aa5da7483b601317498857.tar.gz |
Disable cowsay in the Ansible plugin
-rw-r--r-- | vmdb/plugins/ansible_plugin.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vmdb/plugins/ansible_plugin.py b/vmdb/plugins/ansible_plugin.py index 40564ad..0275836 100644 --- a/vmdb/plugins/ansible_plugin.py +++ b/vmdb/plugins/ansible_plugin.py @@ -48,9 +48,13 @@ class AnsibleStepRunner(vmdb.StepRunnerInterface): state.ansible_inventory = self.create_inventory(mount_point) vmdb.progress( 'Created {} for Ansible inventory'.format(state.ansible_inventory)) + + env = dict(os.environ) + env['ANSIBLE_NOCOWS'] = '1' vmdb.runcmd( ['ansible-playbook', '-c', 'chroot', - '-i', state.ansible_inventory, playbook]) + '-i', state.ansible_inventory, playbook], + env=env) def teardown(self, step, settings, state): if hasattr(state, 'ansible_inventory'): |