72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
---
|
|
# This playbook contains playhs that will run on all nodes
|
|
|
|
- name: Update apt
|
|
apt: update_cache=yes
|
|
|
|
- name: Upgrade APT to the lastest packages
|
|
apt: upgrade=safe
|
|
|
|
- name: Install htop
|
|
apt: name=htop state=present
|
|
|
|
- name: Install curl
|
|
apt: name=curl state=present
|
|
|
|
- name: Install openssh-server
|
|
apt: name=openssh-server state=present
|
|
|
|
- name: Install git
|
|
apt: name=git state=present
|
|
|
|
- name: Install tmux
|
|
apt: name=tmux state=prsent
|
|
|
|
- name: Install zip
|
|
apt: name=zip state=present
|
|
|
|
- name: Install unzip
|
|
apt: name=unzip state=present
|
|
|
|
- name: Install fail2ban
|
|
apt: name=fail2ban state=present
|
|
|
|
- name: Install ntp
|
|
apt: name=ntp state=present
|
|
|
|
- name: Install mysql-client
|
|
apt: name=mysql-client state=present
|
|
|
|
- name: Install wget
|
|
apt: name=wget state=present
|
|
|
|
- name: Set git username
|
|
shell: git config --global user.name "Jacob Cody Wimer"
|
|
|
|
- name: Set git email
|
|
shell: git config --global user.email "jacob.wimer@gmail.com"
|
|
|
|
- name: Get docker
|
|
shell: curl -sSL https://get.docker.com/ | sh
|
|
|
|
- name: Get docker compose
|
|
shell: curl -L https://github.com/docker/compose/releases/download/1.5.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
|
|
|
|
- name: Link docker compose
|
|
shell: chmod +x /usr/local/bin/docker-compose
|
|
|
|
- name: Set timezone to NewYork
|
|
shell: timedatectl set-timezone America/New_York
|
|
|
|
- name: Install heroku toolbelt
|
|
shell: wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
|
|
|
- name: Create update script
|
|
shell: touch /etc/cron.daily/update.sh
|
|
|
|
- name: Set update script as executable
|
|
shell: chmod +x /etc/cron.daily/update.sh
|
|
|
|
- name: Add update line to update script
|
|
shell: echo apt-get update && apt-get upgrade -y && apt-get clean && apt-get autoclean && apt-get autoremove -y && apt-get update >> /etc/cron.daily/update.sh
|