Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
- hosts: all
become: true
become_user: "root"
become_method: sudo
tasks:
- name: Enable epel
shell:
cmd: '/usr/bin/amazon-linux-extras enable epel'
- name: Install epel
yum:
pkg: epel-release
state: present
- name: Run a yum update -y
yum:
name: '*'
state: latest
- name: Install monitoring/admin packages
yum:
name:
- htop
- telnet
- vim
- tcpdump
- screen
- vnstat
- bind-utils
- mtr
- git
state: present
- name: Install common build/devel packages
yum:
name:
- kernel-headers
- gcc
- gcc-c++
- cpp
- ncurses
- ncurses-devel
- libxml2
- libxml2-devel
- sqlite
- sqlite-devel
- openssl-devel
- newt-devel
- kernel-devel
- libuuid-devel
- net-snmp-devel
- bzip2
#- jansson-devel
- make
- patch
- libedit-devel
- lua
- lua-devel
- unzip
- mariadb-devel
- mariadb-libs
- readline
- readline-devel
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment