Add ansible roles + templates
This commit is contained in:
10
ansible/roles/tools/tasks/main.yml
Normal file
10
ansible/roles/tools/tasks/main.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- name: Load variables
|
||||
include_vars: "{{ ansible_os_family|lower }}.yml"
|
||||
|
||||
- name: Tools | install common packages for servers
|
||||
ansible.builtin.package:
|
||||
name: '{{ common_packages }}'
|
||||
state: latest
|
||||
tags: common-tools
|
15
ansible/roles/tools/vars/debian.yml
Normal file
15
ansible/roles/tools/vars/debian.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
# vars file for tools role
|
||||
common_packages:
|
||||
- htop
|
||||
- neofetch
|
||||
- curl
|
||||
- bash
|
||||
- figlet
|
||||
- vim
|
||||
- rsync
|
||||
- needrestart
|
||||
- lynis
|
||||
- apt-listbugs
|
||||
- dnsutils
|
||||
- libpam-radius-auth
|
Reference in New Issue
Block a user