瀏覽代碼

delete ssh keys with file modules

master
父節點
當前提交
fd6fd0e191
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      tasks/regenerate.yml

+ 5
- 1
tasks/regenerate.yml 查看文件

@@ -1,7 +1,11 @@
---

- name: delete ssh host keys
shell: rm /etc/ssh/ssh_host_*
file:
path: "{{item}}"
state: absent
with_fileglob:
- /etc/ssh/ssh_host_*
register: _ssh_host_keys_delete

- name: reconfigure ssh server


Loading…
取消
儲存