Skip to content

Instantly share code, notes, and snippets.

@elreydetoda
Created August 5, 2026 03:17
Show Gist options
  • Select an option

  • Save elreydetoda/a3556481ecca5e841b7c400b2982dd98 to your computer and use it in GitHub Desktop.

Select an option

Save elreydetoda/a3556481ecca5e841b7c400b2982dd98 to your computer and use it in GitHub Desktop.
Mythic 4.0 Beta vagrant provisioning: https://specterops.io/blog/2026/08/04/mythic-4-public-beta/
---
- name: Provision Mythic Teamserver
hosts: all
become: true
tasks:
- name: Install Mythic
ansible.builtin.include_role:
name: elreydetoda.mythic
vars:
mythic_version: Mythic-v4.0.0
agents:
- repo: https://github.com/MythicC2Profiles/http
branch: Mythic-v4.0.0
- repo: https://github.com/MythicAgents/poseidon
branch: Mythic-v4.0.0
- repo: https://github.com/MythicAgents/apollo
branch: Mythic-v4.0.0
collections:
- name: community.general
version: ">=9.0.0"
roles:
- name: elreydetoda.mythic
scm: git
src: https://github.com/elreydetoda/ansible-role-mythic.git
version: master
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-24.04"
config.vm.network "forwarded_port", guest: 7443, host: 7443, auto_correct: true
config.vm.provider "virtualbox" do |vb|
vb.cpus = 4
vb.memory = 8192
end
config.vm.provider "vmware_desktop" do |v|
v.vmx["numvcpus"] = 4
v.vmx["memsize"] = 8192
end
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook.yaml"
ansible.install_mode = "pip"
ansible.pip_install_cmd = "sudo rm -vf /usr/lib/$(basename $(readlink -f $(which python3)))/EXTERNALLY-MANAGED && curl -fsSL https://git.io/Jt9mk | sudo bash -xs"
ansible.compatibility_mode = "2.0"
ansible.galaxy_role_file = "requirements.yaml"
ansible.galaxy_command = "ansible-galaxy collection install -r %{role_file} --force && ansible-galaxy role install -r %{role_file} --force"
ansible.version = "latest"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment