You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
- 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={{end|default(20)}}
|