-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible prints credentials to console #289
Comments
Hallo @lexxxel , |
@rabelmervin I would recommend familiarizing yourself with Ansible outside of this role first. The documentation is at https://docs.ansible.com/ansible/latest/getting_started/index.html. This issue is however more on the module development side of Ansible, for which there's a brief intro at https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html. I believe this would just need some modifications in |
Sure @lae I'll take a look at ansible |
did you set pve_no_log to true? because that should avoid this warning and also avoids leaking password in log |
yes, PS: I run my playbook with |
I'm attempting to reproduce this atm but after fixing my vagrant-libvirt issues it turns out I only have like half a GB free on my system and thus can't bring up a test cluster with the project's Vagrantfile...so I'll probably try some other time when I can deal with that situation. But if anyone else wants to test if this is still an issue I think the following diff (apply with diff --git a/tests/vagrant/group_vars/all b/tests/vagrant/group_vars/all
index 7312d8e..969eb90 100644
--- a/tests/vagrant/group_vars/all
+++ b/tests/vagrant/group_vars/all
@@ -80,6 +80,16 @@ pve_storages:
- name: no-content-dir
type: dir
path: /tmp/fakedir2
+ - name: fake-pbs
+ type: pbs
+ content: [ "backup" ]
+ server: 127.0.0.1
+ username: user@pbs
+ password: PBSPassword1
+ datastore: main
+ fingerprint: f2:fb:85:76:d2:2a:c4:96:5c:6e:d8:71:37:36:06:17:09:55:f7:04:e3:74:bb:aa:9e:26:85:92:63:c8:b9:23
+ encryption_key: autogen
+ namespace: Top/blah
pve_zfs_create_volumes:
- testpool/zfs2
pve_ceph_osds:
@@ -91,3 +101,4 @@ ntp_servers:
- clock.sjc.he.net
- clock.fmt.he.net
- clock.nyc.he.net
+pve_no_log: true I say I believe it's fixed because the lines that configure the module in |
Ansible warns about possible leaked passwords, e.g. here:
The text was updated successfully, but these errors were encountered: