Verifies correct parameter is given

This commit is contained in:
Jorge Enrique Gómez Gómez 2020-09-28 20:06:30 -05:00
parent 32c209be71
commit 6953843804
2 changed files with 13 additions and 2 deletions

View File

@ -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
gather_facts: yes
user: sistemas
@ -10,3 +21,5 @@
gather_facts: no
roles:
- nginxproxy
vars:
dominio: agofer.net

View File

@ -1,4 +1,2 @@
---
email: sistemas@agofer.com.co
dominio: agofer.net