You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

---
- name: Disable SSH reverse DNS lookup
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: "(.*UseDNS.*)"
line: "UseDNS no"
backrefs: true
state: present
create: false
- name: Install additional packages
ansible.builtin.dnf:
name:
- cifs-utils
- jq
- nfs-utils
- rsync
- tcpdump
- tuned
state: present
- name: Install Vagrant public SSH key
when: ansible_facts['distribution_major_version'] | int <= 9
ansible.posix.authorized_key:
user: vagrant
key: https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub
state: present
# Temporary workaround error on fetching a key from a URL on AlmaLinux OS Kitten 10
# Error output: Error getting key from
# See: https://github.com/ansible-collections/ansible.posix/blob/main/plugins/modules/authorized_key.py
- name: Install Vagrant public SSH key
when: ansible_facts['distribution_major_version'] == '10'
ansible.posix.authorized_key:
user: vagrant
key: "{{ lookup('ansible.builtin.file', 'vagrant.pub') }}"
state: present