From 8e9b5ad5766fec79aa34badab3f95dedd7310163 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 20 Aug 2018 13:44:33 +0100 Subject: [PATCH] tests: import template benchmark script. --- tests/ansible/bench/loop-20-templates.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/ansible/bench/loop-20-templates.yml diff --git a/tests/ansible/bench/loop-20-templates.yml b/tests/ansible/bench/loop-20-templates.yml new file mode 100644 index 00000000..df994bd8 --- /dev/null +++ b/tests/ansible/bench/loop-20-templates.yml @@ -0,0 +1,14 @@ + +- hosts: all + tasks: + - file: + dest: /tmp/templates + state: "{{item}}" + with_items: ["absent", "directory"] + + - copy: + dest: /tmp/templates/{{item}} + mode: 0755 + content: + Hello from {{item}} + with_sequence: start=1 end=20