Re: [ansible-project] Variables from csv and loops with random records

2017-01-21 Thread Mátyás Kovács
This is the right answer, thanks. The module was in a wrong folder. Now everything is OK. Thanks for everyone. 2017. január 20., péntek 16:26:58 UTC+1 időpontban Kai Stian Olstad a következőt írta: > > On 20. jan. 2017 09:00, Johannes Kastl wrote: > > On 19.01.17 11:48 Mátyás Kovács wrote: >

Re: [ansible-project] Variables from csv and loops with random records

2017-01-20 Thread Kai Stian Olstad
On 20. jan. 2017 09:00, Johannes Kastl wrote: On 19.01.17 11:48 Mátyás Kovács wrote: Hi! Thanks for the advice, I like it. But, I have a syntax error with this: --- - hosts: all tasks: - iptables_raw: The indentation is wrong, the dash should be indented as tasks is: - hosts: all

Re: [ansible-project] Variables from csv and loops with random records

2017-01-20 Thread Johannes Kastl
On 19.01.17 11:48 Mátyás Kovács wrote: > Hi! > > Thanks for the advice, I like it. But, I have a syntax error with this: > > --- > - hosts: all > tasks: > - iptables_raw: The indentation is wrong, the dash should be indented as tasks is: - hosts: all tasks: - iptables_raw:

Re: [ansible-project] Variables from csv and loops with random records

2017-01-19 Thread Johannes Kastl
On 19.01.17 11:50 Mátyás Kovács wrote: > In this case, I have to update a lot of file, because there are a > lot of different rule on each servers. If your existing files have valid iptables syntax, then this conversion should be scriptable... Johannes -- You received this message because you

Re: [ansible-project] Variables from csv and loops with random records

2017-01-19 Thread Mátyás Kovács
In this case, I have to update a lot of file, because there are a lot of different rule on each servers. But, I have another project, where I will use this solution. Thanks! 2017. január 18., szerda 11:04:37 UTC+1 időpontban Johannes Kastl a következőt írta: > > On 17.01.17 09:42 Mátyás Kovács

Re: [ansible-project] Variables from csv and loops with random records

2017-01-18 Thread Johannes Kastl
On 17.01.17 09:42 Mátyás Kovács wrote: > I hope you can help me with this problem. There are 50 different > servers, each of them has different iptables firewall and rules. I > want them to be managed by Ansible. My idea is to create a csv > file, like this: Have a look at

Re: [ansible-project] Variables from csv and loops with random records

2017-01-18 Thread Kai Stian Olstad
On 17.01.2017 09:42, Mátyás Kovács wrote: Hi All, I hope you can help me with this problem. There are 50 different servers, each of them has different iptables firewall and rules. I want them to be managed by Ansible. My idea is to create a csv file, like this: I highly recommend against a

[ansible-project] Variables from csv and loops with random records

2017-01-17 Thread Mátyás Kovács
Hi All, I hope you can help me with this problem. There are 50 different servers, each of them has different iptables firewall and rules. I want them to be managed by Ansible. My idea is to create a csv file, like this: hostname/ip, iptablesrule testmachine05, iptables -A LOGNDROP -p udp -m