Verifies correct parameter is given
This commit is contained in:
parent
32c209be71
commit
6953843804
13
local.yml
13
local.yml
@ -1,3 +1,14 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
gather_facts: no
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Verify correct usage of parameter
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- nombre is defined
|
||||||
|
- nombre|length > 3
|
||||||
|
fail_msg: 'Debe definir una variable "nombre"'
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
user: sistemas
|
user: sistemas
|
||||||
@ -10,3 +21,5 @@
|
|||||||
gather_facts: no
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- nginxproxy
|
- nginxproxy
|
||||||
|
vars:
|
||||||
|
dominio: agofer.net
|
||||||
|
|||||||
@ -1,4 +1,2 @@
|
|||||||
---
|
---
|
||||||
email: sistemas@agofer.com.co
|
email: sistemas@agofer.com.co
|
||||||
|
|
||||||
dominio: agofer.net
|
|
||||||
|
|||||||
Reference in New Issue
Block a user