summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/tasks/rke_node.yml
blob: 9ec9f073ae9642dd4813d6b8673746f13ff193a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
---
- name: Create a rke user on the node
  user:
    name: "{{ rke_username }}"
    groups: docker
    password_lock: yes

- name: Distribute rke user ssh public key
  authorized_key:
    user: "{{ rke_username }}"
    key: "{{ hostvars[groups['infrastructure'][0]].cluster_public_key }}"