<commit_before>---


- name: set ip_forward to 1 to allow kickstarting of network nodes
  sysctl: name=net.ipv4.ip_forward value=1 sysctl_set=yes reload=no
  remote_user: root

- name: get iptables rules
  shell: iptables -L; iptables -t nat -L
  register: iptablesrules
  remote_user: root
  check_mode: no
  changed_when: False

- name: allow forwarding traffic in iptables
  command: iptables -I FORWARD 1 -i "{{ internal_interface }}" -o "{{ external_interface }}" -m comment --comment "forward from internal net" -j ACCEPT
  when: iptablesrules.stdout.find("forward from internal net") == -1
  remote_user: root
<commit_msg>cleanup of ip_forwarder to more modern ansible #2<commit_after>---


- name: set ip_forward to 1 to allow kickstarting of network nodes
  sysctl:
     name: net.ipv4.ip_forward
     value: 1
     sysctl_set: yes 
     reload: no
  remote_user: root

- name: get iptables rules
  shell: iptables -L; iptables -t nat -L
  register: iptablesrules
  remote_user: root
  check_mode: no
  changed_when: False

- name: allow forwarding traffic in iptables
  command: iptables -I FORWARD 1 -i "{{ internal_interface }}" -o "{{ external_interface }}" -m comment --comment "forward from internal net" -j ACCEPT
  when: iptablesrules.stdout.find("forward from internal net") == -1
  remote_user: root

{'fraction_non_alphanumeric': 0.09476876421531463, 'fraction_numerical': 0.008339651250947688, 'mean_word_length': 3.7311827956989245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2116395', 'n_tokens_mistral': 445, 'n_tokens_neox': 432, 'n_words': 151}