tags lesson completed
This commit is contained in:
12
playbooks/block_playbook.yml
Normal file
12
playbooks/block_playbook.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- hosts: labservers
|
||||
tasks:
|
||||
- name: get file
|
||||
block:
|
||||
- get_url:
|
||||
url: "http://innaghiyev2c/index.html"
|
||||
dest: "/tmp/index_file"
|
||||
rescue:
|
||||
- debug: msg="The file doesn't exists!"
|
||||
always:
|
||||
- debug: msg="Play done!"
|
||||
Reference in New Issue
Block a user