Install and update My Application automatically via Ansible. Integrate it into your CI/CD process or test it locally with Vagrant and VirtualBox.
Scenario: To test My Application a little bit with minimal effort, you can use a local installation in the local VirtualBox VM via Vargant. This is also suitable for developers to perform "system tests" for their changes.
Prerequisites
Perform the following steps in the terminal (Linux / macOS) or in the GitBash (Windows):
git clone https://github.com/mirjan-hoffmann/test-box.git
cd test-box
vagrant up
When the installation is complete, My Application will be running on
- 192.168.98.141
vagrant up
- Creates a new VM and runs the Ansible playbook, if no VM exists. Turn on a shut down VM, if the VM was created beforevagrant halt
- Shuts down the VMvagrant destroy
- Removes the VMvagrant reload --provision
- Restarts the VM and re-runs the Ansible playbookvagrant provision
- Re-runs the Ansible playbook without updating the ansible-scripts and without restarting the VMvagrant ssh
- SSH into the running VM
Scenario: Install My Application automatically on an existing system like your Test/Prod system. Since this is done via Docker containers here, the environment from which the installation is performed is always the same and there are no conflicts due to different Ansible versions on the installation host. This makes the installation more stable. You will be able to start the installation fully automatically with a simple click in the browser or even use a scheduled or triggered installation.
also have a look at the gitlab-config-example