Kubernetes/CICD/Ansible/key.yml

7 lines
161 B
YAML
Raw Normal View History

2024-08-07 10:54:39 +00:00
- hosts: all
tasks:
- name: Non secret authentication
authorized_key: user=root key="{{ lookup('file', '/root/.ssh/id_rsa.pub') }}" state=present