New answers tagged

0 votes

How to include a simple ansible vault file an refer its content from the whole ansible workspace?

Sometimes docs have the habit that they are talking about everything, except what is needed. It might be also an ansible bug, I do not know - in some hours, I could finally find some example similar ...
peterh's user avatar
  • 151
1 vote
Accepted

How to manage lxd server configuration by ansible?

I started to develop a python module for the task. It had not been a big job, but honestly I only want to change some values yet, so I finally shortcutted it with this workaround: - name: lxc config ...
peterh's user avatar
  • 151
0 votes

Run Ansible win_shell without double quotes

If you have to do this, I would suggest using win_template and copying the (file with the password in it) to the operating system and running it directly. Do it in a block and shred the file in an ...
Peter Turner's user avatar
  • 1,430
1 vote

Run Ansible win_shell without double quotes

Use regex_escape filter from Ansible. It will help you escape the special character $ in your string. win_shell: 'C:\\TEMP\\myscript.ps1 -password {{ password | regex_escape }}' Ref: https://docs....
Amartya Sinha's user avatar

Top 50 recent answers are included