Initial commit

This commit is contained in:
2024-10-30 01:50:38 +01:00
commit 587ca23374
147 changed files with 7521 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
---
# Configure dropbear settings
- name: Configure dropbear settings
uci:
command: "set"
config: "dropbear"
section: "@dropbear[0]"
type: "dropbear"
value:
enable: "{{ dropbear.enable | default(omit) }}"
verbose: "{{ dropbear.verbose | default(omit) }}"
BannerFile: "{{ dropbear.BannerFile | default(omit) }}"
PasswordAuth: "{{ dropbear.PasswordAuth | default(omit) }}"
Port: "{{ dropbear.Port | default(omit) }}"
RootPasswordAuth: "{{ dropbear.RootPasswordAuth | default(omit) }}"
RootLogin: "{{ dropbear.RootLogin | default(omit) }}"
GatewayPorts: "{{ dropbear.GatewayPorts | default(omit) }}"
Interface: "{{ dropbear.Interface | default(omit) }}"
keyfile: "{{ dropbear.keyfile | default(omit) }}"
SSHKeepAlive: "{{ dropbear.SSHKeepAlive | default(omit) }}"
IdleTimeout: "{{ dropbear.IdleTimeout | default(omit) }}"
mdns: "{{ dropbear.mdns | default(omit) }}"
MaxAuthTries: "{{ dropbear.MaxAuthTries | default(omit) }}"
RecvWindowSize: "{{ dropbear.RecvWindowSize | default(omit) }}"

View File

@@ -0,0 +1,20 @@
---
# Configure dropbear section
- name: Configure dropbear section
ansible.builtin.include_tasks: dropbear.yml
# Copy SSH authorized keys
- name: Copy ssh authorized keys
ansible.builtin.copy:
src: "authorized_keys"
dest: "/etc/dropbear/authorized_keys"
owner: "root"
group: "root"
mode: "0600"
force: true
# Apply changes and reload dropbear service
- name: Apply changes and reload dropbear
uci:
command: commit
notify: Reload dropbear