Permalink
Switch branches/tags
v3.11.0-alpha.0 v3.10.0-rc.0 v3.0.2-2 v3.0.2-1 v3.0.1-1 v3.0.0 v3.0.0-rc v3.0.0-8 v3.0.0-7 v3.0.0-6 v3.0.0-5 v3.0.0-4 v3.0.0-3 v3.0.0-2 v3.0.0-1 v3-beta2-03-09-15 openshift-ansible-v3.6.77-stage openshift-ansible-v3.5.5.17-1 openshift-ansible-v3.4.1.26-1 openshift-ansible-v3.3.1.27-1 openshift-ansible-inventory-0.0.11-1 openshift-ansible-inventory-0.0.10-1 openshift-ansible-inventory-0.0.9-1 openshift-ansible-inventory-0.0.8-1 openshift-ansible-inventory-0.0.7-1 openshift-ansible-inventory-0.0.6-1 openshift-ansible-inventory-0.0.5-1 openshift-ansible-inventory-0.0.4-1 openshift-ansible-inventory-0.0.3-1 openshift-ansible-inventory-0.0.2-1 openshift-ansible-inventory-0.0.1-1 openshift-ansible-bin-0.0.21-1 openshift-ansible-bin-0.0.20-1 openshift-ansible-bin-0.0.19-1 openshift-ansible-bin-0.0.18-1 openshift-ansible-bin-0.0.17-1 openshift-ansible-bin-0.0.16-1 openshift-ansible-bin-0.0.15-1 openshift-ansible-bin-0.0.14-1 openshift-ansible-bin-0.0.13-1 openshift-ansible-bin-0.0.12-1 openshift-ansible-bin-0.0.11-1 openshift-ansible-bin-0.0.10-1 openshift-ansible-bin-0.0.9-1 openshift-ansible-bin-0.0.8-1 openshift-ansible-bin-0.0.7-1 openshift-ansible-bin-0.0.6-1 openshift-ansible-bin-0.0.5-1 openshift-ansible-bin-0.0.4-1 openshift-ansible-bin-0.0.3-1 openshift-ansible-bin-0.0.2-1 openshift-ansible-bin-0.0.1-1 openshift-ansible-Unexpected.0.0.0.0-1 openshift-ansible-Unexpected-1 openshift-ansible-3.11.0-0.7.0 openshift-ansible-3.11.0-0.6.0 openshift-ansible-3.11.0-0.5.0 openshift-ansible-3.11.0-0.1.0 openshift-ansible-3.11.0-0.0.0 openshift-ansible-3.10.23-1 openshift-ansible-3.10.22-1 openshift-ansible-3.10.21-1 openshift-ansible-3.10.20-1 openshift-ansible-3.10.19-1 openshift-ansible-3.10.18-1 openshift-ansible-3.10.17-1 openshift-ansible-3.10.16-1 openshift-ansible-3.10.15-1 openshift-ansible-3.10.14-1 openshift-ansible-3.10.13-1 openshift-ansible-3.10.12-1 openshift-ansible-3.10.11-1 openshift-ansible-3.10.10-1 openshift-ansible-3.10.9-1 openshift-ansible-3.10.8-1 openshift-ansible-3.10.7-1 openshift-ansible-3.10.6-1 openshift-ansible-3.10.5-1 openshift-ansible-3.10.3-1 openshift-ansible-3.10.2-1 openshift-ansible-3.10.1-1 openshift-ansible-3.10.0-0.69.0 openshift-ansible-3.10.0-0.68.0 openshift-ansible-3.10.0-0.67.0 openshift-ansible-3.10.0-0.66.0 openshift-ansible-3.10.0-0.65.0 openshift-ansible-3.10.0-0.64.0 openshift-ansible-3.10.0-0.63.0 openshift-ansible-3.10.0-0.61.0 openshift-ansible-3.10.0-0.60.0 openshift-ansible-3.10.0-0.59.0 openshift-ansible-3.10.0-0.58.0 openshift-ansible-3.10.0-0.57.0 openshift-ansible-3.10.0-0.56.0 openshift-ansible-3.10.0-0.54.0 openshift-ansible-3.10.0-0.53.0 openshift-ansible-3.10.0-0.52.0 openshift-ansible-3.10.0-0.51.0 openshift-ansible-3.10.0-0.50.0 openshift-ansible-3.10.0-0.49.0
Nothing to show
Find file Copy path
86 lines (69 sloc) 2.45 KB
---
- fail:
msg: "SELinux is disabled, This deployment type requires that SELinux is enabled."
when:
- (not ansible_selinux or ansible_selinux.status != 'enabled')
- openshift_deployment_type == 'openshift-enterprise'
- not openshift_use_crio | bool
- import_tasks: dnsmasq_install.yml
- import_tasks: dnsmasq.yml
- name: setup firewall
import_tasks: firewall.yml
- name: Update journald config
import_tasks: journald.yml
#### 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
- name: include node installer
import_tasks: install.yml
- name: Restart cri-o
systemd:
name: cri-o
enabled: yes
state: restarted
when: openshift_use_crio | bool
register: task_result
failed_when:
- task_result is failed
- ('could not find the requested service' not in task_result.msg|lower)
- name: restart NetworkManager to ensure resolv.conf is present
systemd:
name: NetworkManager
enabled: yes
state: restarted
# 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
# Required in some selinux policy versions see
# https://bugzilla.redhat.com/show_bug.cgi?id=1587825
# https://bugzilla.redhat.com/show_bug.cgi?id=1549765
- name: Setting sebool container_manage_cgroup
seboolean:
name: container_manage_cgroup
state: yes
persistent: yes
- import_tasks: registry_auth.yml
- name: include standard node config
import_tasks: config.yml
#### Storage class plugins here ####
- name: NFS storage plugin configuration
import_tasks: storage_plugins/nfs.yml
- name: GlusterFS storage plugin configuration
import_tasks: storage_plugins/glusterfs.yml
when: "'glusterfs' in osn_storage_plugin_deps"
- name: Ceph storage plugin configuration
import_tasks: storage_plugins/ceph.yml
when: "'ceph' in osn_storage_plugin_deps"
- name: iSCSI storage plugin configuration
import_tasks: storage_plugins/iscsi.yml
when: "'iscsi' in osn_storage_plugin_deps"
##### END Storage #####