update..
This commit is contained in:
9
DOC/README.set-variable-from-command-output
Normal file
9
DOC/README.set-variable-from-command-output
Normal file
@ -0,0 +1,9 @@
|
||||
- name: Print out password hash of node-exporter admin password to variable
|
||||
shell: mkpasswd -m bcrypt "{{ node_exporter_admin_password }}"
|
||||
register: password_hash
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
|
||||
- name: Show content of var 'password_hash.rc'
|
||||
debug:
|
||||
msg: "{{ password_hash.stdout }}"
|
Reference in New Issue
Block a user