Skip to content

alexbridge/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible playbooks for base VM setup

Live example

Live Example

Local testing of playbooks

First create and run Ubuntu Docker container

  • inside local directory
  • make init-ubuntu : this will create 4 local ubuntu VMs and local inventory file

Check local Makefile recipes for local playbook commands

Base VM setup Playbooks:

  • make ping: to check if connection works
  • make play-ping: run roles/base/ping to check group/hosts vars, facts, etc
  • make play-base: basic VM setup (packages): git, docker, etc.

Project specific VM setup Playbooks:

  • make play-project-nginx: install nginx and add project hosts
  • make play-project-backend: deploy project backend
  • make play-project-ssh: add SSH authorized keys

Execute playbooks on remote host

Update ./inventory/remote/remote.ini

  • add remote VM IP address and other configs (if needed)

Run Playbooks

  • check Makefile recipes for playbook commands

About

Ansible boilerplate playbooks for base VM setup. VM ping, update, user add with keys, git, docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published