GOAD
  • Installation
    • Setup Ubuntu Server 22.04
    • Install VirtualBox & Vagrant
    • Install git and HomeLab Setup
    • Ansible Install & Playbook
    • Ansible Playbook
    • More Commands
    • Install VPN Server PrintUNL
  • Page 1
Powered by GitBook
On this page
  • Vagrant usefull commands (vm management)
  • Ansible commands (provisioning management)
  1. Installation

More Commands

PreviousAnsible PlaybookNextInstall VPN Server PrintUNL

Last updated 1 year ago

Vagrant usefull commands (vm management)

  • start all lab vms :

vagrant up
  • start only one vm :

vagrant up <vmname>
  • stop all the lab vm :

vagrant halt
  • drop all the lab vm (because you want to recreate all) (carrefull : this will erase all your lab instance)

vagrant destroy
  • snapshot the lab ()

vagrant snapshot push
  • restore the lab snapshot (this could break servers relationship, reset servers passwords with fix_trust.yml playbook)

vagrant snapshot pop

Ansible commands (provisioning management)

Play only an ansible part

  • only play shares of member_server.yml :

ansible-playbook member_server.yml --tags "data,shares"

Play only on some server

ansible-playbook -l dc2 domain_controller.yml

Add some vulns

ansible-playbook vulnerabilities.y
https://www.vagrantup.com/docs/cli/snapshot