Structure

AttackMate playbooks must be written in valid YAML-format and require at least a commands section:

###
commands:
  - type: shell
    cmd: nmap www.vulnerable-system.tld
  - type: shell
    cmd: nikto -host www.vulnerable-system.tld

Usually playbooks also contain a variable section which contains all the placeholders that can be used to build commands:

###
vars:
  TARGET: www.vulnerable-system.tld
  NMAP: /usr/bin/nmap
  NIKTO: /usr/bin/nikto

commands:
  - type: shell
    cmd: $NMAP -T4 $TARGET
  - type: shell
    cmd: $NIKTO -host $TARGET