Properly solve ansible-lint 306 warning about shell task with pipe

Do not ignore such warnings! They are there for a reason!
master
Robin Schneider 4 years ago
parent 713a7683ef
commit a56a4d6600
No known key found for this signature in database
GPG Key ID: A81E8006DC95EFE6

@ -80,7 +80,9 @@
when: wireguard__register_config_file.stat.exists
- name: Derive WireGuard public key
shell: "echo '{{ wireguard__fact_private_key }}' | wg pubkey" # noqa 306
command: "wg pubkey"
args:
stdin: "{{ wireguard__fact_private_key }}"
register: wireguard__register_public_key
changed_when: false
tags:

Loading…
Cancel
Save