This commit is contained in:
Iwan Clément
2019-02-19 19:06:39 +01:00
parent f316fc4224
commit 09d786b7d5

View File

@@ -25,7 +25,7 @@ Creation of file /root/.ssh/authorized_keys:
{% set all_users = salt['user.list_users']() %}
{% set monuser='iwan' %}
{% if monuser in all_users %}
{% set userpath='/home'+monuser %}
{% set userpath='/home/'+monuser %}
Creation of directory {{userpath}}/.ssh:
file.directory:
- name: {{userpath}}/.ssh