Browse Source

enable lvm wipe_signatures_when_zeroing_new_lvs

python3
Andrea Cimbalo 7 years ago
parent
commit
9442374bf5
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      prepare_host.yaml

+ 9
- 9
prepare_host.yaml View File

@ -43,22 +43,22 @@
- vim
- htop
- name: add ca pub key
copy:
content: "ssh-rsa {{ user_ca_key }}"
dest: /etc/ssh/user_ca.pub
- name: trust ca pub key
- name: enable lvm wipe signature
lineinfile:
dest: /etc/ssh/sshd_config
dest: /etc/lvm/lvm.conf
state: present
line: "TrustedUserCAKeys /etc/ssh/user_ca.pub"
notify: restart sshd
line: " wipe_signatures_when_zeroing_new_lvs = 1"
regexp: "^\s*wipe_signatures_when_zeroing_new_lvs = 0"
notify: restart lvm
handlers:
- name: restart networking
service:
name: networking
state: reloaded
- name: restart lvm
service:
name: lvm
state: reloaded
- name: restart sshd
service:
name: networking


Loading…
Cancel
Save