Merge pull request #2096 from andymcc/regex_defaults

Add regexp check for setting CLUSTER_NAME
pull/2019/merge
Sébastien Han 2017-10-23 17:24:44 +02:00 committed by GitHub
commit 751da93b08
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
insertafter: EOF
create: yes
line: "CLUSTER={{ cluster }}"
regexp: "^CLUSTER="
when:
- ansible_os_family == "RedHat"
@ -32,6 +33,7 @@
dest: /etc/default/ceph
insertafter: EOF
create: yes
regexp: "^CLUSTER="
line: "CLUSTER={{ cluster }}"
when:
- ansible_os_family == "Debian"
@ -43,6 +45,7 @@
dest: /etc/default/ceph/ceph
insertafter: EOF
create: yes
regexp: "^CLUSTER="
line: "CLUSTER={{ cluster }}"
when:
- ansible_os_family == "Debian"