diff --git a/playbook.yml b/playbook.yml index 76fc76f..e3c36b8 100644 --- a/playbook.yml +++ b/playbook.yml @@ -4,8 +4,12 @@ connection: local become: false tasks: + - name: echo variable + debug: + msg: "{{ dir_list | split(' ') }}" + - name: Create test file copy: content: | - test 2 {{dir_list}} + test 2 {{ dir_list | split(' ') }} dest: /home/thomas/test.txt \ No newline at end of file