Skip to content

Ansible Playbooks for Fresh Centos, Debian and Windows installs

Notifications You must be signed in to change notification settings

matthewmcneilly/ansible-install-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://devopsideas.com/ansible-local-setup-using-vagrant-virtualbox/

Vargrant Commands

vargrant up - spin up vm (uses vagrant file from current directory) vargrant status - lists current available vagrant made vms vagrant ssh - ssh into vm

Ansible

sudo yum install ansible sudo vim /etc/ansible/hosts add ssh keyfrom localmachine to ~/.ssh/authorized_keys ansible app -m ping -u vagrant - ping vm

Download required installers (.rpm, .run, .deb) into appropiate playbook (see vars in playbook for context)

Edit vars in appropiate playbook to match installer names

Run Playbook as Vagrant User

ansible-playbook playbook.yaml -u vagrant

Dry run as Vagrant User

ansible-playbook playbook.yaml -u vagrant --check

Run Playbook on local host

Uncomment "hosts: localhost" and "connection: local" in playbook

Comment out "hosts: apps" in playbook

About

Ansible Playbooks for Fresh Centos, Debian and Windows installs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages