--- - name: get worker ignition file command: > curl -k {{ openshift_bootstrap_endpoint }} register: l_worker_bootstrap when: openshift_bootstrap_endpoint is defined - set_fact: ign_contents: "{{ l_worker_bootstrap.stdout }}" when: openshift_bootstrap_endpoint is defined - set_fact: ign_contents: "{{ lookup('file', ignition_file) }}" when: ignition_file is defined - debug: var: ign_contents - name: parse ignition file parse_ignition: ign_file_contents: "{{ ign_contents }}" register: l_parse_ignition_res - import_tasks: create_files_from_ignition.yml vars: l_parse_ignition_dict: "{{ l_parse_ignition_res }}" #### Disable SWAP ##### # https://docs.openshift.com/container-platform/3.4/admin_guide/overcommit.html#disabling-swap-memory # swapoff is a custom module in lib_utils that comments out swap entries in # /etc/fstab and runs swapoff -a, if necessary. - name: Disable swap swapoff: {} when: openshift_disable_swap | default(true) | bool # The atomic-openshift-node service will set this parameter on # startup, but if the network service is restarted this setting is # lost. Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1372388 - sysctl: name: net.ipv4.ip_forward value: 1 sysctl_file: "/etc/sysctl.d/99-openshift.conf" reload: yes - name: Setting sebool container_manage_cgroup seboolean: name: container_manage_cgroup state: yes persistent: yes