Add error handling for ansible_playbook handler

This commit is contained in:
Dmitry Shulyak 2015-07-02 09:17:09 +03:00
parent b4ddfd2bb6
commit 06b89459e8
4 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,9 @@
- hosts: '*'
- hosts: localhost
sudo: yes
vars:
var1: 'playbook'
roles:
- { role: "test_role" }
- { role: "test_role" }
tasks:
- debug: msg="VAR1 value is {{var1}}"
- fail: msg='just test failure'

View File

@ -4,7 +4,7 @@ version: 0.0.1
input:
var1:
type: str!
value: some_value
value: meta
uuid:
type: str!
value: 'aa1das1231'

View File

@ -1,4 +1,6 @@
- hosts: '*'
sudo: yes
vars:
default1: playbook
tasks:
- debug: "my message"
- debug: msg="my message {{default1}}"

View File

@ -11,3 +11,6 @@ input:
ssh_key:
type: str!
value:
default1:
type: str!
value: meta