You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/samples/lookup_password.yml

8 lines
287 B
YAML

- hosts: localhost
gather_facts: no
#vars:
# my_password: "{{ lookup('password', '/tmp/test_lookup_password length=15') }}"
tasks:
#- debug: msg="the password is {{my_password}}"
- debug: msg="the password is {{ lookup('password', '/tmp/test_lookup_password length=15') }}"