first version of base role

This commit is contained in:
Timo Makinen 2019-05-10 15:25:38 +03:00
parent 57ffdc6b50
commit 2ceee43d40
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,33 @@
---
- name: enable epel repository
package:
name: epel-release
state: installed
- name: install packages
package:
name: "{{ item }}"
state: installed
with_items:
- bind-utils # dig
- emacs # better editor :)
- iftop # monitor interfaces
- iotop # monitor io usage
- nc # netcat
- net-tools # ifconfig etc
- strace # debugging
- vim-enhanced # working vi :)
- xterm # resize
- name: disable grep colors
file:
dest: /etc/GREP_COLORS
state: absent
- name: cron job for downloading yum updates
cron:
name: yum-downloadonly
user: root
hour: 3
minute: "{{ 59 | random(seed=inventory_hostname) }}"
job: "yum -d 0 -e 0 -y --downloadonly update > /dev/null"

View file

@ -0,0 +1,3 @@
---
- name: include os specific tasks
include_tasks: "{{ ansible_os_family }}.yml"