
As we are using ansible 2.0, we should move from sudo to become to avoid deprecation. Change-Id: Ia084759b9c38f5c045ab14eab3af63a2ad33069f Closes-bug: 1547430
10 lines
186 B
YAML
10 lines
186 B
YAML
- hosts: localhost
|
|
become: yes
|
|
vars:
|
|
var1: 'playbook'
|
|
roles:
|
|
- { role: "test_role" }
|
|
tasks:
|
|
- debug: msg="VAR1 value is {{var1}}"
|
|
- fail: msg='just test failure'
|