network-manager.yml 725 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Install network manager dispatch script
  3. copy:
  4. src: networkmanager/99-origin-dns.sh
  5. dest: /etc/NetworkManager/dispatcher.d/
  6. mode: 0755
  7. notify: restart NetworkManager
  8. - name: Add network manager configuration
  9. ini_file:
  10. path: /etc/NetworkManager/conf.d/99-origin.conf
  11. section: main
  12. option: "{{ item.key }}"
  13. value: "{{ item.value }}"
  14. state: "{{ 'present' if item.present is not defined or item.present else 'absent' }}"
  15. no_extra_spaces: yes
  16. create: yes
  17. mode: 0600
  18. notify: restart NetworkManager
  19. with_items:
  20. - key: dns
  21. value: none
  22. present: "{{ openshift_node_dnsmasq_disable_network_manager_dns | default(false) | bool }}"
  23. - meta: flush_handlers