Initial commit with sources
This commit is contained in:
73
ansible/packages.yml
Normal file
73
ansible/packages.yml
Normal file
@@ -0,0 +1,73 @@
|
||||
---
|
||||
|
||||
- hosts: all
|
||||
|
||||
strategy: free
|
||||
|
||||
vars:
|
||||
- packages :
|
||||
- apt
|
||||
- apache2
|
||||
- bash
|
||||
- dnsmasq
|
||||
- exim
|
||||
- httpd
|
||||
- libc-bin
|
||||
- mailx
|
||||
- make
|
||||
- mariadb-server
|
||||
- memcached
|
||||
- mysql-server
|
||||
- nagios
|
||||
- nginx
|
||||
- nrpe
|
||||
- openssh-server
|
||||
- php5
|
||||
- php7.0
|
||||
- php7.1
|
||||
- php7.2
|
||||
- php7.4
|
||||
- phpmyadmin
|
||||
- postfix
|
||||
- redis
|
||||
- redis-server
|
||||
- sudo
|
||||
- systemd
|
||||
|
||||
tasks:
|
||||
|
||||
# Loop on package list to get versions
|
||||
|
||||
- name: Check packages lists
|
||||
include: packages_include.yml package="{{ item }}"
|
||||
with_items:
|
||||
- "{{ packages }}"
|
||||
|
||||
|
||||
# Get the RUNNING kernel
|
||||
|
||||
## Debian
|
||||
|
||||
- when: ansible_distribution == "Debian" and ansible_distribution_major_version|int >= 7
|
||||
block:
|
||||
|
||||
- name: (Debian) get kernel version
|
||||
shell: uname -v | awk '{ print $4 }'
|
||||
register: kernel_version_debian
|
||||
changed_when: false
|
||||
|
||||
- name: (Debian) Kernel output
|
||||
debug: msg="{{ inventory_hostname }};kernel;{{ kernel_version_debian.stdout }}"
|
||||
|
||||
## Ubuntu
|
||||
|
||||
- when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 16
|
||||
block:
|
||||
|
||||
- name: (Ubuntu) get kernel version
|
||||
shell: uname -r
|
||||
register: kernel_version_ubuntu
|
||||
changed_when: false
|
||||
|
||||
- name: (ubuntu) Kernel output
|
||||
debug: msg="{{ inventory_hostname }};kernel;{{ kernel_version_ubuntu.stdout }}"
|
||||
Reference in New Issue
Block a user