Remove useless files

parent 1b1f6115
# ssh
Source: https://git.shivering-isles.com/shivering-isles/infrastructure/tree/3b986957c4922244b1f159115947c2a79b22f646/roles/ssh
\ No newline at end of file
ssh_authorized_keys: []
sshd_binary: "/usr/sbin/sshd"
---
- name: Install ssh keys
authorized_key:
user: "{{ item.user }}"
state: "{{ item.state | default('present') }}"
key: "{{ item.key }}"
comment: "{{ item.owner }} - {{ item.comment }} | Managed by Ansible"
with_items:
- "{{ ssh_authorized_keys }}"
become: true
tags:
- ssh
---
- name: Install ssh keys
authorized_key:
user: "{{ item.user }}"
state: "{{ item.state | default('present') }}"
key: "{{ item.key }}"
comment: "{{ item.owner }} - {{ item.comment }} | Managed by Ansible"
with_items:
- "{{ ssh_authorized_keys }}"
become: true
tags:
- ssh
- name: Set ratelimit for SSH
firewalld:
rich_rule: "rule service name=ssh limit value=10/m accept"
state: enabled
permanent: true
immediate: true
become: true
tags:
- firewall
- ssh
- name: Disable SSH by firewall to let ratelimit kick in
firewalld:
service: "ssh"
state: disabled
permanent: true
immediate: true
become: true
tags:
- firewall
- ssh
---
- name: "Select tasks for {{ ansible_distribution }} {{ ansible_distribution_major_version }}"
include_tasks: "{{ distro_file }}"
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
loop_control:
loop_var: distro_file
tags:
- firewall
- ssh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment