Skip to content

Small Ansible demo running on your own computer by using VirtualBox and Vagrant.

License

Notifications You must be signed in to change notification settings

blauwe-lucht/ansible-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

You need to have VirtualBox and Vagrant installed. Open a command shell in the directory of the cloned repository and run

vagrant up

This will create two VMs, one being the linux ansible control server (acs), the other a simple Windows Server Core (node).

Log on the acs with

vagrant ssh acs

To test if ansible can reach the Windows machine, run

./test-win.sh

You should get this response:

192.168.33.50 | SUCCESS => {
    "changed": false,
    "ping": "pong"
}

The Windows Server machine will run on IP-address 192.168.33.50. If you open a browser at http://192.168.33.50 you will get an error since IIS is not installed.

To install IIS and place a simple HTML page run

./install_iis.sh

If you now visit http://192.168.33.50, you will see a test page.

To remove IIS again run

./uninstall_iis.sh

More information

About

Small Ansible demo running on your own computer by using VirtualBox and Vagrant.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published