瀏覽代碼

Replace deprecated "user" attribute by "runas"

tags/v0.41.0
Raphaël Hertzog 6 年之前
父節點
當前提交
6ccb9fc87d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      openssh/config.sls

+ 1
- 1
openssh/config.sls 查看文件

@@ -67,7 +67,7 @@ ssh_generate_host_{{ keyType }}_key:
{%- set keySizePart = "-b {}".format(keySize) if keySize else "" %}
- name: "rm {{ keyFile }}*; ssh-keygen -t {{ keyType }} {{ keySizePart }} -N '' -f {{ keyFile }}"
- unless: "test -s {{ keyFile }}"
- user: root
- runas: root
- require_in:
- file: sshd_config
- watch_in:

Loading…
取消
儲存