summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/storage_plugins/iscsi.yml
blob: e31433dbca06e51eead55e60dc4dc7e4e65f5d9f (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
29
30
31
32
33
---
- name: Install iSCSI storage plugin dependencies
  package:
    name: "{{ item }}"
    state: present
  when: not openshift_is_atomic | bool
  register: result
  until: result is succeeded
  with_items:
    - iscsi-initiator-utils
    - device-mapper-multipath

- name: restart services
  systemd:
    name: "{{ item }}"
    state: started
    enabled: True
  when: not openshift_is_atomic | bool
  with_items:
    - multipathd
    - rpcbind

- name: Template multipath configuration
  template:
    dest: "/etc/multipath.conf"
    src: multipath.conf.j2
    backup: true
  when: not openshift_is_atomic | bool

#enable multipath
- name: Enable multipath
  command: "mpathconf --enable"
  when: not openshift_is_atomic | bool