Monthly Archives: september 2017

Prime Linux devop server

Install Ansible

sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
sudo nano /etc/ansible/hosts

Install Git

mkdir prime
cd prime/
mkdir ansible
cd ansible/

Update Ansible to run localhost

sudo nano /etc/ansible/hosts

Add as last row

localhost ansible_connection=local

Download and run Git role

ansible-galaxy install geerlingguy.git

Create Ansible script for Git

nano git .yml

- hosts: all
  - git

sudo ansible-playbook -i "localhost," -c local git.yml