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.
15 lines
265 B
YAML
15 lines
265 B
YAML
6 years ago
|
|
||
|
- 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
|