mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 03:28:09 +01:00
Replace deprecated "user" attribute by "runas"
This commit is contained in:
parent
73727bc218
commit
6ccb9fc87d
@ -67,7 +67,7 @@ ssh_generate_host_{{ keyType }}_key:
|
|||||||
{%- set keySizePart = "-b {}".format(keySize) if keySize else "" %}
|
{%- set keySizePart = "-b {}".format(keySize) if keySize else "" %}
|
||||||
- name: "rm {{ keyFile }}*; ssh-keygen -t {{ keyType }} {{ keySizePart }} -N '' -f {{ keyFile }}"
|
- name: "rm {{ keyFile }}*; ssh-keygen -t {{ keyType }} {{ keySizePart }} -N '' -f {{ keyFile }}"
|
||||||
- unless: "test -s {{ keyFile }}"
|
- unless: "test -s {{ keyFile }}"
|
||||||
- user: root
|
- runas: root
|
||||||
- require_in:
|
- require_in:
|
||||||
- file: sshd_config
|
- file: sshd_config
|
||||||
- watch_in:
|
- watch_in:
|
||||||
|
Loading…
Reference in New Issue
Block a user