# More Commands

### 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 (<https://www.vagrantup.com/docs/cli/snapshot>)

```
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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rabakuku.gitbook.io/goad/installation/more-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
