Use cmd with runas parameter

Replace the deprecated user and group parameters with runas to fix
deprecation warnings.
This commit is contained in:
Jan Dittberner 2016-09-24 23:53:49 +02:00
parent 95b2e521eb
commit ef7fbd0afd
4 changed files with 6 additions and 12 deletions

View file

@ -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