This modification is needed for krbd xfstests (e.g. generic/081), so
factor out lvm.conf snippet from setup-ubuntu.yml into tasks/.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
--- /dev/null
+---
+- name: Edit lvm.conf to support LVM on kRBD.
+ lineinfile:
+ dest: /etc/lvm/lvm.conf
+ regexp: "# types ="
+ line: 'types = [ "rbd", 16 ]'
+ backrefs: yes
+ state: present
tags:
- cpan
+- include: lvm.yml
+ tags:
+ - lvm
+
# configure ntp
- include: ntp.yml
tags:
- include: nfs.yml
tags:
- nfs
-
-- name: Edit lvm.conf to support LVM on RBD.
- lineinfile:
- dest: /etc/lvm/lvm.conf
- regexp: "# types ="
- line: 'types = [ "rbd", 16 ]'
- backrefs: yes
- state: present