[ansible-project] Re: ERROR! this task 'ansible.windows.win_command' has extra params

2021-03-18 Thread jbor...@gmail.com
You are using Ansible 2.9 and the ansible.windows collections does not work with this Ansible version (requires 2.10). This is one of the reasons why the minimum version for that collection is 2.10. Thanks Jordan On Friday, March 19, 2021 at 1:12:31 AM UTC+10 jayantya...@gmail.com wrote: > H

[ansible-project] ERROR! this task 'ansible.windows.win_command' has extra params

2021-03-18 Thread jayant yadav
Hi Everyone, I'm getting this error, I've added the playbook below. Please let me know how to fix this error jayantyadav@DESKTOP-40L7UNL:/etc/ansible$ ansible-playbook editfile.yml ERROR! this task 'ansible.windows.win_command' has extra params, which is only allowed in the following modules:

Re: [ansible-project] How to improve the readability of block scalars when used with jinja

2021-03-18 Thread jean-christophe manciot
Thanks @sivel. This is possible with: - - #jinja2: lstrip_blocks: "true", trim_blocks: "true" (as first line of yml task file before ---) - all {% and %} replaced with {%- and -%} respectively - both double-quotes removed from my previous example (which is normal jinja actuall

Re: [ansible-project] Error reading config file (/etc/ansible/ansible.cfg): Source contains parsing errors: '' [line 4]: ' 3 \n' #601

2021-03-18 Thread Mohamed Rahiman
thanks Anthony On Tue, 16 Mar 2021 at 11:13, Antony Stone < antony.st...@ansible.open.source.it> wrote: > On Tuesday 16 March 2021 at 12:06:35, Mohamed Rahiman wrote: > > > ok guys did a bit of rtfm and my format for the hosts file was in no > format > > so i did the yaml format with colons and b

Re: [ansible-project] How do i export the ansible output of a playbook TASK to a excel sheet or table?

2021-03-18 Thread Vikram S
Hi Pushparaj, I am aware of writing some basic scripts using Jinja2 template but yet to master it. I later came to know about lieinfile module and wrote it using that Thanks, Vikram On Monday, 15 March, 2021 at 12:30:38 pm UTC+5:30 rajthecomputerguy wrote: > write a Jinja2 template and render

Re: [ansible-project] How do i export the ansible output of a playbook TASK to a excel sheet or table?

2021-03-18 Thread Vikram S
Hi, I later came to know about lieinfile module and wrote it using that. Thanks for your suggestion though. - name: GATHER CURRENT VERSION IN DEVICE FACTS ios_facts: - lineinfile: path: ./output/output10.txt state: present line: - "Image upgrade is successful. Current version is {{ a