Hey everyone does anyone know what the syntax is to call the secrets file from a shell command? I don’t want to have a password in the shell command I want to store it in my secrets file.
Here is what I have:
shell_command:
turn_off_pc: 'net rpc shutdown -I 192.168.1.122 -U users%password'
So I want to store password in the secrets file.
I’ve tried this:
shell_command:
turn_off_pc: 'net rpc shutdown -I 192.168.1.122 -U users%'!secret pc_pass
and this (put this string in secrets file: users%password):
shell_command:
turn_off_pc: 'net rpc shutdown -I 192.168.1.122 -U !secret pc_pass
and finally I tried it without single quotes:
shell_command:
turn_off_pc: net rpc shutdown -I 192.168.1.122 -U users%!secret pc_pass
Thanks for any help!