>
> Hi,
>
Can you please take a look on my errors and try to help me figuring out why 
I am getting them?

This is my inventory code:
  - hosts: localhost
    vars:
      my_hosts:
        - group: 'POC_ENV'
          hosts: "{{ lookup('file',
                     '/home/ansible/MACCABI/hosts/POC_ENV.yml').splitlines() }}"
vars:
  ansible_ssh_private_key_file: /home/ansible/.ssh/id_rsa
  ansible_ssh_common_args: 
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
  ansible_user: ansible

This is my playbook code (task is to add a VLAN):
  name: Playing VLAN Configuration
  hosts: POC-ENV
  connection: local
  vars:
    vlan_id: 999
    vlan_name: TEST_VLAN_TEST

  tasks:
    - include_role:
        name: add_vlan
        name: show_vlan


This is the errors I get:

[image: Ansible add vlans errors.PNG]


Thanks!
















-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/512c2e73-247b-400c-a6d9-fe5afb947d1f%40googlegroups.com.

Reply via email to