config.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ---
  2. - name: get worker ignition file
  3. command: >
  4. curl -k {{ openshift_bootstrap_endpoint }}
  5. register: l_worker_bootstrap
  6. - debug:
  7. var: l_worker_bootstrap.stdout
  8. - name: parse ignition file
  9. parse_ignition:
  10. ign_file_contents: "{{ l_worker_bootstrap.stdout }}"
  11. register: l_parse_ignition_res
  12. - import_tasks: create_files_from_ignition.yml
  13. vars:
  14. l_parse_ignition_dict: "{{ l_parse_ignition_res }}"
  15. #### Disable SWAP #####
  16. # https://docs.openshift.com/container-platform/3.4/admin_guide/overcommit.html#disabling-swap-memory
  17. # swapoff is a custom module in lib_utils that comments out swap entries in
  18. # /etc/fstab and runs swapoff -a, if necessary.
  19. - name: Disable swap
  20. swapoff: {}
  21. when: openshift_disable_swap | default(true) | bool
  22. # The atomic-openshift-node service will set this parameter on
  23. # startup, but if the network service is restarted this setting is
  24. # lost. Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1372388
  25. - sysctl:
  26. name: net.ipv4.ip_forward
  27. value: 1
  28. sysctl_file: "/etc/sysctl.d/99-openshift.conf"
  29. reload: yes
  30. - name: Setting sebool container_manage_cgroup
  31. seboolean:
  32. name: container_manage_cgroup
  33. state: yes
  34. persistent: yes