Tag Info

Hot answers tagged

1

You can also just take out the -x and replace with -I, it should open up PsExec \computerOne -u Domain\User1 -p 123456 -i "C:\Windows\System32\calc.exe"


1

In the inventory file the example below give the desired result. [hosts:vars] ansible_su_pass=My#Password But the variable is then related to all hosts in the hosts group so a better way is to create a file "/etc/ansible/host_vars/host1" and put the following inside : ansible_su_pass: My#Password


1

You can use # inline, by escaping it with \, i.e ansible_su_pass=My\#Password. Make sure you're using the latest Ansible as ini parser has evolved over time.


1

Maybe you need this: Add this at .profile on all your hosts if [ -n "$SSH_CLIENT" ]; then PS1="Remote! \W : " else PS1="Local: " fi



Only top voted, non community-wiki answers of a minimum length are eligible