Re: [ansible-project] Refactor Playbook to loop over hosts individually

2018-08-22 Thread Caleb Guerrero
Yes that is exactly what I was looking for Kai. Would I still specify the entire group 'ios' in the hosts section of the playbook? On Wednesday, August 22, 2018 at 9:41:28 AM UTC-6, Kai Stian Olstad wrote: > > On 22.08.2018 17:18, Caleb Guerrero wrote: > > Actually after re-readi

Re: [ansible-project] Refactor Playbook to loop over hosts individually

2018-08-22 Thread Caleb Guerrero
Actually after re-reading your post Brian. I can have 1 play with multiple tasks set to run_once or use a when conditional; I could also just use multiple plays to accomplish this. I was hopeful there was a way to use a for loop to loop over specific hosts running the task individually per

Re: [ansible-project] Refactor Playbook to loop over hosts individually

2018-08-22 Thread Caleb Guerrero
Yeah in my scenario I would have 12+ plays for this development environment. I was mainly looking for other options that would shorten the size of the playbook if I had to run a similar command across hundreds of hosts. With the when conditional, I would still need individual plays per host

[ansible-project] Refactor Playbook to loop over hosts individually

2018-08-22 Thread Caleb Guerrero
All, I am trying to refactor my playbook to run an ios command across a group of hosts... My challenge is that the command is specific to individual hosts in the group. As it stands, my playbook initial task is ran against all hosts in my group and looping over every item in my list. My intent

[ansible-project] Unable to connect to Cisco IOS devices using network_cli - socket is closed error

2018-08-15 Thread Caleb Guerrero
Hello, I have been attempting to connect to various Cisco IOS devices in our dev environment with no luck using the network_cli connection method. I can communicate with all devices when running* 'ansible ios -m ping'* and setting the connection method to *'ansible_connection: local';* however