Added ansible templating example

This commit is contained in:
Michele Cereda
2022-05-08 02:06:57 +02:00
parent 6a6ee6e251
commit 36ae2f2a76
2 changed files with 11 additions and 1 deletions

View File

@@ -74,3 +74,7 @@
salt: "{{ lookup('community.general.random_string', special=false) }}"
ansible.builtin.debug:
var: password | password_hash('sha512', salt)
- name: Get a variable's type.
ansible.builtin.debug:
var: "'string' | type_debug"