Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Make ansible-lint and yamllint happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
tiraboschi committed Apr 16, 2019
1 parent b6991f4 commit bc82e57
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions tasks/pre_checks/validate_network_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@
when: he_network_test not in ['dns', 'ping', 'tcp', 'none']
- name: Validate TCP network connectivity check parameters
block:
- debug: var=he_tcp_t_address
- name: Fail if he_tcp_t_address is not defined
fail:
msg: "No he_tcp_t_address is defined"
changed_when: true
when:
( he_tcp_t_address is undefined ) or
( he_tcp_t_address is none ) or
( he_tcp_t_address|trim == '' )
- debug: var=he_tcp_t_port
- name: Fail if he_tcp_t_port is not defined
fail:
msg: "No he_tcp_t_port is defined"
changed_when: true
when:
( he_tcp_t_port is undefined ) or
( he_tcp_t_port is none )
- name: Fail if he_tcp_t_port is no integer
fail:
msg: "he_tcp_t_port has to be integer"
changed_when: true
when: not he_tcp_t_port|int
- debug: var=he_tcp_t_address
- name: Fail if he_tcp_t_address is not defined
fail:
msg: "No he_tcp_t_address is defined"
changed_when: true
when:
( he_tcp_t_address is undefined ) or
( he_tcp_t_address is none ) or
( he_tcp_t_address|trim|length == 0 )
- debug: var=he_tcp_t_port
- name: Fail if he_tcp_t_port is not defined
fail:
msg: "No he_tcp_t_port is defined"
changed_when: true
when:
( he_tcp_t_port is undefined ) or
( he_tcp_t_port is none )
- name: Fail if he_tcp_t_port is no integer
fail:
msg: "he_tcp_t_port has to be integer"
changed_when: true
when: not he_tcp_t_port|int
when: he_network_test == 'tcp'

0 comments on commit bc82e57

Please sign in to comment.