[ansible-project] Re: Ansible dynamic looping

2018-02-03 Thread Andrew Morgan
I did it by host_name: "{ item }" with_lines: cat "file" On Saturday, 3 February 2018 22:20:31 UTC-5, Mark Lam wrote: > > Hi Andrew > > Can you show us how you did it? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] Re: Ansible dynamic looping

2018-02-03 Thread Mark Lam
Hi Andrew Can you show us how you did it? -- 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

[ansible-project] Re: Ansible dynamic looping

2018-02-03 Thread Andrew Morgan
thank you , with files worked, after piping list of ips On Thursday, 1 February 2018 19:01:51 UTC-5, Andrew Morgan wrote: > > Hello all, > > I have a play I want to run wich deletes all hosts matching a certain > criteria: > > tasks: > - name: Delete unavailable nodes > zabbix_host: >

[ansible-project] Re: Ansible dynamic looping

2018-02-02 Thread Triển Lập Lâm
Hi, can you try "with_fileglob" ? Refer in http://docs.ansible.com/ansible/latest/playbooks_loops.html#id4 Vào 07:01:51 UTC+7 Thứ Sáu, ngày 02 tháng 2 năm 2018, Andrew Morgan đã viết: > > Hello all, > > I have a play I want to run wich deletes all hosts matching a certain > criteria: > >

[ansible-project] Re: Ansible dynamic looping

2018-02-01 Thread Lê Mạnh Hùng
Vào 07:01:51 UTC+7 Thứ Sáu, ngày 02 tháng 2 năm 2018, Andrew Morgan đã viết: > Hello all, > > I have a play I want to run wich deletes all hosts matching a certain > criteria: > > > > tasks: >   - name: Delete unavailable nodes >     zabbix_host: >      server_url: http://zabbix.aa.net/zabbix

[ansible-project] Re: Ansible dynamic looping

2018-02-01 Thread Lê Mạnh Hùng
Vào 07:01:51 UTC+7 Thứ Sáu, ngày 02 tháng 2 năm 2018, Andrew Morgan đã viết: > Hello all, > > I have a play I want to run wich deletes all hosts matching a certain > criteria: > > > > tasks: >   - name: Delete unavailable nodes >     zabbix_host: >      server_url: http://zabbix.aa.net/zabbix