playbook_distribute_authorized_keys: make available on all platforms!
parent
a2acf36094
commit
9bbfb689bf
|
@ -1,10 +1,34 @@
|
||||||
---
|
---
|
||||||
- name: distribute authorized_keys
|
- name: distribute authorized_keys on openwrt with python
|
||||||
hosts: all
|
hosts:
|
||||||
|
- gateways
|
||||||
|
- accesspoints
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: transfer authorized_keys
|
- name: deploy authorized_keys
|
||||||
copy:
|
copy:
|
||||||
src: files/authorized_keys
|
src: files/authorized_keys
|
||||||
dest: /etc/dropbear/authorized_keys
|
dest: /etc/dropbear/authorized_keys
|
||||||
mode: 0600
|
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') }}"
|
||||||
|
|
Loading…
Reference in New Issue