supernodes.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. - hosts: supernodes
  3. vars_files:
  4. - passwords.yml
  5. remote_user: root
  6. roles:
  7. # - { role: calculate_missing_inventory_variables, tags: "bird,gateways_dhcp,gateways_kea_configure,gateways_kea_postgres"}
  8. - { role: hostname, tags: "hostname"}
  9. - { role: common, tags: "common"}
  10. - { role: motd, tags: "motd"}
  11. - { role: backports-kernel, tags: "backports-kernel", when: "ansible_distribution == 'Debian' and ansible_distribution_major_version == '8'"}
  12. - { role: net_netfilter, tags: "net_netfilter"}
  13. - { role: tunearpcache, tags: "tunearpcache"}
  14. - { role: ip_forwarding, tags: "ip_forwarding"}
  15. - { role: iptables, tags: "iptables"}
  16. - { role: gateways_gre_upstream, tags: "gateways_gre_upstream", when "Hoster == 'FFRL-Berlin'"}
  17. - { role: backbone_gre_ffdo, tags: "backbone_gre_ffms"}
  18. - { role: batman_build, tags: "batman_build", when: "'batman_version' in hostvars[inventory_hostname] and domaenenliste is defined"}
  19. - { role: gateways_batman, tags: "gateways_batman"}
  20. - { role: gateways_gretap, tags: "gateways_gretap"}
  21. - { role: gateways_gre_ffdomesh, tags: "gateways_gre_ffdomesh"}
  22. - { role: gateways_l2tp_new, tags: "gateways_l2tp_new"}
  23. - { role: bird_dtm, tags: "bird", when: secondary_vnic is defined }
  24. - { role: bird, tags: "bird", when: secondary_vnic is undefined }
  25. - { role: gateways_dhcp, tags: "gateways_dhcp", when: "'dhcp_type' not in hostvars[inventory_hostname] or dhcp_type == 'isc-dhcp'"}
  26. #F - { role: gateways_bind, tags: "gateways_bind"}
  27. - { role: gateways_unbound, tags: "gateways_unbound"}
  28. # - { role: collectd, tags: "collectd"}
  29. - { role: gateways_kea_build, tags: "gateways_kea_build", when: "'dhcp_type' in hostvars[inventory_hostname] and dhcp_type == 'kea'"}
  30. - { role: gateways_kea_postgres, tags: "gateways_kea_postgres", when: "'dhcp_type' in hostvars[inventory_hostname] and dhcp_type == 'kea' and kea.database.type == 'postgresql'"}
  31. - { role: gateways_kea_configure, tags: "gateways_kea_configure", when: "'dhcp_type' in hostvars[inventory_hostname] and dhcp_type == 'kea'"}
  32. - { role: py_respondd, tags: "py_respondd"}
  33. #F - { role: nrpe, tags: "nrpe"}
  34. # - { role: set_kernel_param_maxcpus, tags: "set_kernel_param_maxcpus"}
  35. - { role: unattended_upgrades, tags: "unattended_upgrades"}
  36. - { role: gateways_2nd_vnic, tags: "gateways_2nd_vnic", when: "hoster == 'Eimann'"}
  37. - { role: services_ntp, tags: "services_ntp" }