Petr OspalĂ˝ | fe49ee9 | 2019-04-20 00:53:01 +0200 | [diff] [blame] | 1 | --- |
2 | - name: Create a rke user on the node | ||||
3 | user: | ||||
4 | name: "{{ rke_username }}" | ||||
5 | groups: docker | ||||
6 | password_lock: yes | ||||
7 | |||||
8 | - name: Distribute rke user ssh public key | ||||
9 | authorized_key: | ||||
10 | user: "{{ rke_username }}" | ||||
11 | key: "{{ hostvars[groups['infrastructure'][0]].cluster_public_key }}" |