Ansible question
Miroslav Suchý
msuchy at redhat.com
Wed Jan 28 15:57:56 UTC 2015
I have this ansible snippet:
- name: Create users
keystone_user:
login_user="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
user="{{ item.name }}"
email="{{ item.email }}"
tenant="{{ item.tenant }}"
password="{{ item.password }}"
state=present
with_items:
- { name: kevin, email: 'kevin at fedoraproject.org', tenant: infrastructure, password: "{{kevin_password}}" }
- { name: laxathom, email: 'laxathom at fedoraproject.org', tenant: infrastructure, password: "{{laxathom_password}}" }
But when I run it it produce:
TASK: [Create users] **********************************************************
changed: [fed-cloud09.cloud.fedoraproject.org] => (item={'password': u'XXXX', 'name': 'kevin', 'tenant':
'infrastructure', 'email': 'kevin at fedoraproject.org'})
changed: [fed-cloud09.cloud.fedoraproject.org] => (item={'password': u'XXXX', 'name': 'laxathom', 'tenant':
'infrastructure', 'email': 'laxathom at fedoraproject.org'})
Is there way to mask the output (using -name or something) so the password is not print to console?
--
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
More information about the infrastructure
mailing list