13 lines
260 B
YAML
13 lines
260 B
YAML
- hosts: all
|
|
remote_user: root
|
|
tasks:
|
|
- name: Install Python
|
|
package:
|
|
name: python3
|
|
state: present
|
|
- name: Init SSH Key
|
|
authorized_key:
|
|
user: root
|
|
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
|
|
state: 'present'
|