Browse Source

fix lvm wipe_signatures_when_zeroing_new_lvs

python3
Andrea Cimbalo 8 years ago
parent
commit
efef2f7f1a
2 changed files with 4 additions and 7 deletions
  1. +4
    -6
      prepare_host.yaml
  2. +0
    -1
      roles/ssh_server/tasks/main.yaml

+ 4
- 6
prepare_host.yaml View File

@ -43,12 +43,12 @@
- vim - vim
- htop - htop
- name: enable lvm wipe signature
- name: enable lvm wipe signature
lineinfile: lineinfile:
dest: /etc/lvm/lvm.conf dest: /etc/lvm/lvm.conf
state: present 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 notify: restart lvm
handlers: handlers:
- name: restart networking - name: restart networking
@ -56,9 +56,7 @@
name: networking name: networking
state: reloaded state: reloaded
- name: restart lvm - name: restart lvm
service:
name: lvm
state: reloaded
shell: /etc/init.d/lvm2 reload
- name: restart sshd - name: restart sshd
service: service:
name: networking name: networking


+ 0
- 1
roles/ssh_server/tasks/main.yaml View File

@ -71,7 +71,6 @@
include: ca-dialog.yaml include: ca-dialog.yaml
vars: vars:
ansible_connection: ssh ansible_connection: ssh
request: get_request
- debug: - debug:
var: request_result var: request_result


Loading…
Cancel
Save