2 grammar fixes
source | link

How to detect what interface havehas private IP in Ansible

I plan to reconfigure iptables on our servers  (mostly CentOS 7, some CentOS 6). Servers with different network configurations, some on 1Gbit interface, some on 10Gbit, some with VLANs and some with configured LACP. I'm

I want to use Ansible, but couldn't find how to detect what inteface havehas private address. Private address we could get from inventory as ansible_ssh_host.

Is there any Ansible module that could help? Or I should write shell/pythonPython script?

I checked all solutionsolutions on StackOverflow and ServerFault but haven't found anything.

How to detect what interface have private IP in Ansible

I plan to reconfigure iptables on our servers(mostly CentOS 7, some CentOS 6). Servers with different network configurations, some on 1Gbit interface, some on 10Gbit, some with VLANs and some with configured LACP. I'm want to use Ansible, but couldn't find how to detect what inteface have private address. Private address we could get from inventory as ansible_ssh_host.

Is there any Ansible module that could help? Or I should write shell/python script?

I checked all solution on StackOverflow and ServerFault but haven't found anything.

How to detect what interface has private IP in Ansible

I plan to reconfigure iptables on our servers  (mostly CentOS 7, some CentOS 6) with different network configurations, some on 1Gbit interface, some on 10Gbit, some with VLANs and some with configured LACP.

I want to use Ansible, but couldn't find how to detect what inteface has private address. Private address we could get from inventory as ansible_ssh_host.

Is there any Ansible module that could help? Or I should write shell/Python script?

I checked all solutions on StackOverflow and ServerFault but haven't found anything.

1
source | link

How to detect what interface have private IP in Ansible

I plan to reconfigure iptables on our servers(mostly CentOS 7, some CentOS 6). Servers with different network configurations, some on 1Gbit interface, some on 10Gbit, some with VLANs and some with configured LACP. I'm want to use Ansible, but couldn't find how to detect what inteface have private address. Private address we could get from inventory as ansible_ssh_host.

Is there any Ansible module that could help? Or I should write shell/python script?

I checked all solution on StackOverflow and ServerFault but haven't found anything.