This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
2022-06-22 00:05:55 +00:00
|
|
|
---
|
2022-06-30 00:38:24 +00:00
|
|
|
- name: distribute authorized_keys on openwrt with python
|
|
|
|
hosts:
|
|
|
|
- gateways
|
|
|
|
- accesspoints
|
2022-06-22 00:05:55 +00:00
|
|
|
gather_facts: no
|
|
|
|
tasks:
|
2022-06-30 00:38:24 +00:00
|
|
|
- name: deploy authorized_keys
|
2022-06-22 00:05:55 +00:00
|
|
|
copy:
|
|
|
|
src: files/authorized_keys
|
|
|
|
dest: /etc/dropbear/authorized_keys
|
|
|
|
mode: 0600
|
2022-06-30 00:38:24 +00:00
|
|
|
|
|
|
|
- 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') }}"
|