Ansible playbook that you can use to control ssh access to your linux servers. You can install or remove keys, tune sshd options and install additional software.
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.
 
 

18 lines
509 B

---
- name: Minimum packages for Debian-like
apt: name="{{ item }}" state=present update_cache=yes
become: yes
with_items:
- mc
- htop
when: (ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian') and preinstall is defined
- name: Minimum packages for RedHat-like
become: yes
yum: name="{{ item }}" state=present update_cache=yes
with_items:
- mc
- htop
when: (ansible_distribution == 'Red Hat' or ansible_distribution == 'Centos') and preinstall is defined