diff --git a/roles/ceph-common/tasks/main.yml b/roles/ceph-common/tasks/main.yml index 2d223c807..fe91e03b6 100644 --- a/roles/ceph-common/tasks/main.yml +++ b/roles/ceph-common/tasks/main.yml @@ -212,6 +212,7 @@ lineinfile: dest: /etc/sysconfig/ceph insertafter: EOF + create: yes line: "CLUSTER={{ cluster }}" when: ansible_os_family == "RedHat" @@ -220,6 +221,7 @@ lineinfile: dest: /etc/default/ceph/ceph insertafter: EOF + create: yes line: "CLUSTER={{ cluster }}" when: ansible_os_family == "Debian"