From efef2f7f1a633505514cfdff05608de917e40b49 Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Tue, 18 Apr 2017 22:49:35 +0200 Subject: [PATCH] fix lvm wipe_signatures_when_zeroing_new_lvs --- prepare_host.yaml | 10 ++++------ roles/ssh_server/tasks/main.yaml | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/prepare_host.yaml b/prepare_host.yaml index 292089a..17d4a71 100644 --- a/prepare_host.yaml +++ b/prepare_host.yaml @@ -43,12 +43,12 @@ - vim - htop - - name: enable lvm wipe signature + - name: enable lvm wipe signature lineinfile: dest: /etc/lvm/lvm.conf state: present - line: " wipe_signatures_when_zeroing_new_lvs = 1" - regexp: "^\s*wipe_signatures_when_zeroing_new_lvs = 0" + line: " wipe_signatures_when_zeroing_new_lvs = 0" + regexp: '^\s*.+wipe_signatures_when_zeroing_new_lvs = ' notify: restart lvm handlers: - name: restart networking @@ -56,9 +56,7 @@ name: networking state: reloaded - name: restart lvm - service: - name: lvm - state: reloaded + shell: /etc/init.d/lvm2 reload - name: restart sshd service: name: networking diff --git a/roles/ssh_server/tasks/main.yaml b/roles/ssh_server/tasks/main.yaml index 327c2b3..4818a56 100644 --- a/roles/ssh_server/tasks/main.yaml +++ b/roles/ssh_server/tasks/main.yaml @@ -71,7 +71,6 @@ include: ca-dialog.yaml vars: ansible_connection: ssh - request: get_request - debug: var: request_result