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
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:
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
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
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
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