- 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 }}"
