Guillaume Coré
2017-08-18 1904d561273e86b4e0f9383eb16410e4dd2733da
Merge pull request #68 from fridim/fix-zabbix-iptables

fix zabbix-client role networking: s/10250/10050/
1 files modified
6 ■■■■ changed files
ansible/roles/zabbix-client/tasks/networking.yml 6 ●●●● patch | view | raw | blame | history
ansible/roles/zabbix-client/tasks/networking.yml
@@ -25,11 +25,11 @@
  changed_when: false
  ignore_errors: true
- name: Make sure firewall has open port 10250 (persistent)
- name: Make sure firewall has open port 10050 (persistent)
  lineinfile:
    dest: /etc/sysconfig/iptables
    insertbefore: '-A INPUT -j OS_FIREWALL_ALLOW'
    line: '-A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m tcp --dport 10250 -j ACCEPT'
    line: '-A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m tcp --dport 10050 -j ACCEPT'
    state: present
  when: iptables.rc == 0
@@ -42,7 +42,7 @@
# see https://docs.openshift.com/container-platform/3.5/admin_guide/iptables.html
# Instead, just insert the rule to current INPUT chain.
- name: Make sure firewall has open port 10250 (dynamic)
- name: Make sure firewall has open port 10050 (dynamic)
  iptables:
    chain: INPUT
    action: insert