asc.xhack.lab_log4j role – Deploy a VM with an application vulnerable to log4j

Note

This role is part of the asc.xhack collection (version 1.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/xhack $HOME/.ansible/collections/ansible_collections/asc/xhack.

To use it in a playbook, specify: asc.xhack.lab_log4j.

Entry point main – Deploy a VM with an application vulnerable to log4j

New in asc.xhack 1.0.0

Synopsis

  • Deploys a VM with an application vulnerable to log4j

  • This can be used as the entrypoint for the lab

Parameters

Parameter

Comments

lab_log4j

dictionary

‘lab_log4j’ role configuration

enabled

boolean

Whether to enable the lab_log4j role

Choices:

  • false ← (default)

  • true

vm_name

string

Name of the VM to deploy

Default: "vmweb01"

vm_size

string

Size of the VM to deploy (Azure VM size)

Default: "Standard_B1s"

Authors

  • Lorenzo Bernardi