Skip to content

Commit a4a2b61

Browse files
authored
chore: use FQDN for password lookup (#1)
From https://docs.ansible.com/ansible/latest/collections/ansible/builtin/password_lookup.html: > we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.password for easy linking to the plugin documentation and to avoid conflicting with other collections that may have the same lookup plugin name. That's generally good advice when using Ansible plugins, not specific to the `password` one:)
1 parent 2bb1205 commit a4a2b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encryption/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
failed_when: false
77
- name: Generate random string
88
ansible.builtin.set_fact:
9-
key_secret: "{{ lookup('password', '/dev/null length=32 chars=ascii_letters,digits,special_characters') }}"
9+
key_secret: "{{ lookup('ansible.builtin.password', '/dev/null length=32 chars=ascii_letters,digits,special_characters') }}"
1010
no_log: true
1111
when: key_secret is not defined
1212
- name: Ensure key_secret is populated

0 commit comments

Comments
 (0)