github.com/facebookincubator/ttpforge@v1.0.13-0.20240405153150-5ae801628835/example-ttps/cleanup/default.yaml (about)

     1  ---
     2  api_version: 2.0
     3  uuid: 763a6408-d395-4737-92ba-4b8bb20b7976
     4  name: Default Cleanup Actions Demo
     5  description: |
     6    Certain types of actions, such as `create_file`, have a default cleanup
     7    action that you can enable by specifying `cleanup: default` in the relevant
     8    step. This TTP shows how the `create_file` default cleanup action deletes
     9    the created file.
    10  steps:
    11    - name: create_file_cleanup_demo
    12      create_file: /tmp/ttpforge-default-cleanup-demo-{{randAlphaNum 10}}
    13      contents: this will be automatically deleted...
    14      cleanup: default