Skip to content
Create a VM with vagrant and deploy it with ansible
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
provisioning
.gitignore
README.md
Vagrantfile
ansible.cfg
requirements.yml

README.md

Mail my IP address

This playbook wil create a Vitrual Machine on your local VirtualBox environment using CentOS 7 as the OS. After the VM is running we'll capture it's IP address(es) and mail them to the addressee, defined in the variables.

Requirements

  • VirtualBox
  • Ansible
  • Vagrant
  • GIT

Execute

Pull this repository to your local machine and enter the following commands:

 $ ansible-galaxy install -r requirements.yml
 $ vagrant up
  • Check your mail!

To remove the VM from your VirtualBox environment, enter the following command:

  $ vagrant destoy -f
You can’t perform that action at this time.