35 lines
787 B
YAML
35 lines
787 B
YAML
---
|
|
- name: distribute authorized_keys on openwrt with python
|
|
hosts:
|
|
- gateways
|
|
- accesspoints
|
|
gather_facts: no
|
|
tasks:
|
|
- name: deploy authorized_keys
|
|
copy:
|
|
src: files/authorized_keys
|
|
dest: /etc/dropbear/authorized_keys
|
|
mode: 0600
|
|
|
|
- name: distribute authorized_keys on openwrt with rsync
|
|
hosts:
|
|
- switches
|
|
gather_facts: no
|
|
tasks:
|
|
- name: deploy authorized_keys
|
|
synchronize:
|
|
src: files/authorized_keys
|
|
dest: /etc/dropbear/authorized_keys
|
|
owner: no
|
|
group: no
|
|
|
|
- name: distribute authorized_keys everywhere else
|
|
hosts:
|
|
- server
|
|
- vms
|
|
tasks:
|
|
- name: deploy authorized_keys
|
|
authorized_key:
|
|
user: root
|
|
key: "{{ lookup('file', 'files/authorized_keys') }}"
|