From dc2fc3665e8f30fb43106bdd59c2ef522ec798b6 Mon Sep 17 00:00:00 2001 From: Ben England Date: Tue, 5 Apr 2016 21:33:05 -0400 Subject: [PATCH] create /etc/sysconfig/ceph if it doesn't already exist --- roles/ceph-common/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) 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"