spec.md 770 B

MODIFIED Requirements

Requirement: Extract trojan-go binary from downloaded archive

The Ansible playbook SHALL ensure the extraction destination directory /tmp/trojan-go-extract/ exists before invoking the unarchive module to extract trojan-go.zip.

Scenario: Destination directory does not exist

  • WHEN the playbook runs on a fresh remote host where /tmp/trojan-go-extract/ has never been created
  • THEN the playbook creates the directory before extraction and the unarchive task succeeds

Scenario: Destination directory already exists

  • WHEN the playbook runs on a host where /tmp/trojan-go-extract/ already exists from a prior run
  • THEN the directory creation task is idempotent and the unarchive task proceeds normally