2019-05-20 15:46:10 +08:00
|
|
|
---
|
2021-05-21 19:25:25 +08:00
|
|
|
- name: lvmetad tasks related
|
|
|
|
when:
|
|
|
|
- inventory_hostname in groups.get(osd_group_name, [])
|
|
|
|
- lvmetad_disabled | default(False) | bool
|
|
|
|
- ansible_facts['os_family'] == 'RedHat'
|
|
|
|
- ansible_facts['distribution_major_version'] | int == 7
|
|
|
|
block:
|
|
|
|
- name: stop lvmetad
|
|
|
|
service:
|
|
|
|
name: lvm2-lvmetad
|
|
|
|
state: stopped
|
|
|
|
|
|
|
|
- name: disable and mask lvmetad service
|
|
|
|
service:
|
|
|
|
name: lvm2-lvmetad
|
|
|
|
enabled: no
|
|
|
|
masked: yes
|
|
|
|
|
2019-05-20 15:46:10 +08:00
|
|
|
- name: remove ceph udev rules
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
with_items:
|
|
|
|
- /usr/lib/udev/rules.d/95-ceph-osd.rules
|
|
|
|
- /usr/lib/udev/rules.d/60-ceph-by-parttypeuuid.rules
|
|
|
|
|
|
|
|
- name: ensure tmpfiles.d is present
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/tmpfiles.d/ceph-common.conf
|
|
|
|
line: "d /run/ceph 0770 root root -"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
state: present
|
|
|
|
create: yes
|
2022-03-07 17:31:14 +08:00
|
|
|
|
|
|
|
- name: restore certificates selinux context
|
|
|
|
when:
|
|
|
|
- ansible_facts['os_family'] == 'RedHat'
|
|
|
|
- inventory_hostname in groups.get(mon_group_name, [])
|
|
|
|
or inventory_hostname in groups.get(rgw_group_name, [])
|
|
|
|
command: /usr/sbin/restorecon -RF /etc/pki/ca-trust/extracted
|
|
|
|
changed_when: false
|
2022-09-19 11:20:23 +08:00
|
|
|
|
|
|
|
- name: install python3 on osd nodes
|
|
|
|
package:
|
|
|
|
name: python3
|
|
|
|
state: present
|
|
|
|
when:
|
|
|
|
- inventory_hostname in groups.get(osd_group_name, [])
|
|
|
|
- ansible_facts['os_family'] == 'RedHat'
|