Skip to content

mirkoferraro/ansible-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Playground

An Ansible playbook for Playground

Includes:

  • PHP 7.1 (and 5.6 if needed)
  • Composer
  • MySql 5.6
  • Apache 2 with FastCGI
  • Memcached
  • Redis
  • Node 8

Installation

Step 1 - Prepare the machine

$ sudo apt-add-repository -y ppa:ansible/ansible
$ sudo apt update
$ sudo apt upgrade -y
$ sudo apt install -y software-properties-common ansible git

Step 2 - Clone the repository

$ sudo git clone https://github.com/mirkoferraro/ansible-playground ~/ansible-playground

Step 3 - Configure hosts and vars

Edit ~/ansible-playground/hosts and ~/ansible-playground/host_vars/yourhostname.com files

Step 4 - Run ansible

$ cd ~/ansible-playground
$ sudo ansible-playbook -i hosts playbook.yml -c local

Step 5 - Restart ansible at specific task

$ sudo ansible-playbook -i hosts playbook.yml -c local --start-at-task="your task name"

About

Ansible playbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published