d2ray/ansible/d2ray.yml

11 lines
273 B
YAML
Raw Normal View History

2021-04-19 07:51:22 +00:00
- hosts: '{{ target }}'
gather_facts: false
become: true
remote_user: root
any_errors_fatal: yes
tasks:
- name: add root ssh key
ansible.posix.authorized_key:
user: root
state: present
key: "{{ lookup('file', './id_root.pub') }}"