apigee / henchman

Orchestration and Automation tool
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Issue with template task in creating destination folder. #111

Closed baskaran-md closed 8 years ago

baskaran-md commented 8 years ago
  - name: Setup provisioning folder
    template: src="/tmp/files/provisioning/" dest="/opt/provisioning"

On running this, the task should copy all the files inside /tmp/files/provisioning/ to /opt/provisioning/. It should create if the destination doesn't exist. However, it should not create a nested folder inside if the destination already exists. (like /opt/provisioning/provisioning/)

Also, by default, it can override the files inside the destination if they are already present. Option like override: false will be nice to have.