[ansible-project] Re: Quotes inside URI header

2022-02-21 Thread 1793...@gmail.com
I see. Thank you! El Monday, February 21, 2022 a la(s) 7:16:35 PM UTC-6, jbor...@gmail.com escribió: > If it's showing "Authorization": "Token token=\"1234\"" then that's to be > expected. The json formatting of the output needs to escape the inner > double quotes to make it valid json. The li

[ansible-project] Re: Quotes inside URI header

2022-02-21 Thread jbor...@gmail.com
If it's showing "Authorization": "Token token=\"1234\"" then that's to be expected. The json formatting of the output needs to escape the inner double quotes to make it valid json. The literal value sent to the module is still Token token="1234". On Tuesday, February 22, 2022 at 10:37:08 AM UTC

[ansible-project] Re: Quotes inside URI header

2022-02-21 Thread 1793...@gmail.com
I understand. In that case, beyond that output appearance, it's the actual value that I thought was being encoded/modified. That's the one I need in double quotes. The header value must look like this: "headers": { "Authorization": "Token token="1234" "

Re: [ansible-project] How to Ansible copy force overwrite

2022-02-21 Thread jbor...@gmail.com
The problem here is you are telling it to copy the file to the location E:\OtomasyonFiles\WINDOWSISO\win2019 which is a folder. Add a trailing \ to the dest or use the full path to where you want the file to be ('E:\OtomasyonFiles\WINDOWSISO\win2019\autounattend.xml') so it knows to place the f

[ansible-project] Re: Quotes inside URI header

2022-02-21 Thread jbor...@gmail.com
> When I attempt to do it, the quotes are being parsed into JSON and the token is enclosed by backslashes. Why do you believe this is the case, if it's due to the backslashes appearing in the task output that's just due to the output being encoded as json. The literal value is what that json re

[ansible-project] Quotes inside URI header

2022-02-21 Thread 1793...@gmail.com
Hi there, I have a scenario where I have to pass a token in the URI Authorization header, but it must be enclosed in double quotes as per my endpoint's requirement. When I attempt to do it, the quotes are being parsed into JSON and the token is enclosed by backslashes. How can I avoid Ansible

Re: [ansible-project] Ansible support for Interactive input

2022-02-21 Thread Dick Visser
https://docs.ansible.com/ansible/latest/user_guide/playbooks_prompts.html On Mon, 21 Feb 2022 at 19:12, kaushal...@gmail.com wrote: > Hi, > > Is there a way to prompt Ansible for interactive input from the user? Any > examples to understand in details? > > Please guide. Thanks in advance. > > Be

[ansible-project] Ansible support for Interactive input

2022-02-21 Thread kaushal...@gmail.com
Hi, Is there a way to prompt Ansible for interactive input from the user? Any examples to understand in details? Please guide. Thanks in advance. Best Regards, Kaushal -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from t

[ansible-project] create liste from multi servers

2022-02-21 Thread bigfootspi
hi ^^ I want to create an inventory of my park. form this exemple, I'm getting the serveur name and linux's version in my inventory, there is a group with my servers. i want to execute this task and finaly, show one complet liste with all of my servers (in only one var) have you an idea ? - h

[ansible-project] Need your advice my playbook for Ansible project for CISCO ACI to automate getting for store logs and records execution time

2022-02-21 Thread Richard Lazaro
Hi , Just letting you check if my plabook is correct below: I just need your help on our project to Ansible for Cisco ACI module to: (1) Create variables to record execution time (2) Define as the variable the name of the directory where the log is stored. (3)Create a directory on Ansible

Re: [ansible-project] How to Ansible copy force overwrite

2022-02-21 Thread Dick Visser
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_copy_module.html#parameter-force On Mon, 21 Feb 2022 at 15:27, Kerem Kalayci wrote: > Hi everyone, > > i m trying to copy file. But win_copy doesn't copy overwrite. How can I > overcome this error? is there a way to get arou

[ansible-project] How to Ansible copy force overwrite

2022-02-21 Thread Kerem Kalayci
Hi everyone, i m trying to copy file. But win_copy doesn't copy overwrite. How can I overcome this error? is there a way to get around this? my code>>> - name: Copy a single file where the source is on the remote host win_copy: src: C:\Tools\AWXtest\New folder\autounattend.xml