aboutsummaryrefslogtreecommitdiffstats
path: root/roles/node_prepare/tasks/main.yaml
blob: afbaeb49b7eb9dde0d2c70ad94df999c10185c99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
# TODO: retrieve facts on Openstack to dynamically find subnet for etc export
- name: install nfs
  when: not use_global_storage
  block:
    - name: gather facts
      setup:

    - name: create nfs server on controller
      import_tasks: nfs_server.yaml
      when: inventory_hostname in groups['nfs-server']

    - name: flush handlers
      meta: flush_handlers

    - name: mount dockerdata in nfs
      import_tasks: nfs_client.yaml
      when: inventory_hostname in groups['k8s-cluster'] and
        inventory_hostname not in groups['nfs-server']

    - name: put right value for max_map_count
      become: "yes"
      ansible.posix.sysctl:
        name: vm.max_map_count
        value: 1048575
        sysctl_set: "yes"
        state: present
        reload: "yes"