[ansible-project] Re: Unable to run playbook (Syntax Error)

2018-04-30 Thread Joshua Hill
Tried it without the register and still no go!

---
- name: get version
  hosts: all
  gather_facts: false
  connection: local

  tasks:

- name: run multiple commands on remote nodes
  ios_command:
 commands:
  - show version
  - show ip int brief


On Monday, April 30, 2018 at 5:26:30 PM UTC-4, Joshua Hill wrote:
>
> Can someone show me where my mistakes are with the below playbook? When i 
> try to run this playbook it tells me it fails at 
>
> - name: run multiple commands on remote nodes
>   ^ here
>
> ---
> - name: get version
>  hosts: all
>  gather_facts: false
>  connection: local
>
>   tasks:
>- name: run multiple commands on remote nodes
>  ios_command:
>commands:
>  - show version
>  - show ip int brief
>
>   register: print_output
>
> -  debug: var=print_output.stdout_lines
>
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d671cbf4-2caf-4dff-8718-966353155c47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Unable to run playbook (Syntax Error)

2018-04-30 Thread Joshua Hill
Same issue

On Monday, April 30, 2018 at 5:26:30 PM UTC-4, Joshua Hill wrote:
>
> Can someone show me where my mistakes are with the below playbook? When i 
> try to run this playbook it tells me it fails at 
>
> - name: run multiple commands on remote nodes
>   ^ here
>
> ---
> - name: get version
>  hosts: all
>  gather_facts: false
>  connection: local
>
>   tasks:
>- name: run multiple commands on remote nodes
>  ios_command:
>commands:
>  - show version
>  - show ip int brief
>
>   register: print_output
>
> -  debug: var=print_output.stdout_lines
>
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8ac41e67-a42b-4a28-acb2-9078a356e3bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Unable to run playbook (Syntax Error)

2018-04-30 Thread Joshua Hill
Can someone show me where my mistakes are with the below playbook? When i 
try to run this playbook it tells me it fails at 

- name: run multiple commands on remote nodes
  ^ here

---
- name: get version
 hosts: all
 gather_facts: false
 connection: local

  tasks:
   - name: run multiple commands on remote nodes
 ios_command:
   commands:
 - show version
 - show ip int brief

  register: print_output

-  debug: var=print_output.stdout_lines


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/28d6edf5-b5de-4241-a5ea-8e586c3b9cb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.