Stevens-MacBook-Pro:ansible stevenwiliams$ cat getver1.yml
- name: show version and other user level commands
hosts: IOL_Routers
gather_facts: false
connection: local
tasks:
- name: run multiple commands on remote nodes
ios_command:
commands:
- show
Issue was permissions within the ansible folder itself. directed to another
directory and it worked.
On Wednesday, August 21, 2019 at 2:21:49 PM UTC-5, Nathan Brady wrote:
>
> Steven,
>
> I use tee so I can see the output and pass the full path.
>
> eg.
> Stevens-MacBook-Pro:ansible
On Wed, Aug 21, 2019 at 1:07 PM Dmitriy Trubov wrote:
> hi,
> here is simple example:
>
> wrapper play book
> ---
> - name: Test Wrapper Playbook
>
> hosts: all
> tasks:
>
> - name: Storage console
> debug:
> msg: "Test Wrapper Play book"
> tags:
> - always
>
> - name:
Steven,
I use tee so I can see the output and pass the full path.
eg.
Stevens-MacBook-Pro:ansible stevenwiliams$ ansible IOL_Routers -i ./hosts
-m raw -a "show run" -u cisco -k *| tee /tmp/filetest*
The issue may be with the directory permissions.
Nathan Brady
Red Hat Consulting
e:
Stevens-MacBook-Pro:ansible stevenwiliams$ ansible IOL_Routers -i ./hosts
-m raw -a "show run" -u cisco -k > filetest
-bash: filetest: Permission denied
Stevens-MacBook-Pro:ansible stevenwiliams$
what am I missing here??
--
You received this message because you are subscribed to the
hi,
here is simple example:
wrapper play book
---
- name: Test Wrapper Playbook
hosts: all
tasks:
- name: Storage console
debug:
msg: "Test Wrapper Play book"
tags:
- always
- name: Precheck Storage Console
import_playbook: "playbooks/test_playbook.yml"
Hi
I have error in importing playbook
TASK [Perform storage console playbook test]
*