Use cmd with runas parameter
Replace the deprecated user and group parameters with runas to fix deprecation warnings.
This commit is contained in:
parent
95b2e521eb
commit
ef7fbd0afd
4 changed files with 6 additions and 12 deletions
|
@ -18,8 +18,7 @@ generate-dhparam-nginx:
|
|||
cmd.run:
|
||||
- name: openssl dhparam -out {{ ssldir }}/dhparams.pem 2048
|
||||
- umask: 022
|
||||
- user: root
|
||||
- group: root
|
||||
- runas: root
|
||||
- creates: {{ ssldir }}/dhparams.pem
|
||||
- require_in:
|
||||
- file: /etc/nginx/conf.d/ssl.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue