Ansible Role: Common
Installs and configures the following common applications on Debian, Elementary OS, Ubuntu, & OS X. This is a living project. I tend to add things as I need them on my computers.
- File:
unzip
,unrar
- Networking:
curl
,netcat
,wget
- Programming:
git
,vim
- Terminal:
bash
,byobu
,locate
,sudo
,tree
Requirements
# Ansible version 2.0.0.2+
ansible --version
# OS
case $OSTYPE in
# Linux needs apt
"linux"*)
apt --version;;
# OS X needs homebrew
"darwin"*)
brew --version;;
# FreeBSD needs 9+ pkgng
"freebsd"*)
pkg --version;;
esac
Role Variables
# ----- bash -----
common_bash_aliases:
- "ll='ls -alF'"
- "la='ls -A'"
- "l='ls -CF'"
- "vi='vim'"
- "grep='grep --color=auto'"
- "fgrep='fgrep --color=auto'"
- "egrep='egrep --color=auto'"
# ----- byobu -----
common_byobu_widgets_left: [ logo, release, session ]
common_byobu_widgets_right: [ reboot_required, updates_available, uptime, cpu_temp, load_average, cpu_count, cpu_freq, memory, disk, date, time ]
common_byobu_windows: []
Dependencies
None.
Example Playbook
- hosts: all
roles:
- role: cmprescott.common
License
BSD
Author Information
Prescott Chris