Fix Ansible linting errors

This commit is contained in:
Manuel Gutierrez 2020-07-03 20:06:02 +02:00
parent 81f8703749
commit 3a63c27f9d
No known key found for this signature in database
GPG Key ID: CEB8789DAED15AAD
2 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
- import_tasks: local_actions.yml
when:
- generate_certs == true
- generate_certs
- block:
@ -69,7 +69,7 @@
delay: 5
tags: debug
when:
- hostvars[inventory_hostname]['private_ip'] is not defined or hostvars[inventory_hostname]['private_ip'] == ""
- hostvars[inventory_hostname]['private_ip'] is not defined or not hostvars[inventory_hostname]['private_ip']
- name: Wait for Elasticsearch API (Private IP)
uri:
@ -86,9 +86,9 @@
delay: 5
tags: debug
when:
- hostvars[inventory_hostname]['private_ip'] is defined and hostvars[inventory_hostname]['private_ip'] != ""
- hostvars[inventory_hostname]['private_ip'] is defined and hostvars[inventory_hostname]['private_ip']
- import_tasks: "RMRedHat.yml"
when: ansible_os_family == "RedHat"
when: perform_installation == true
when: perform_installation

View File

@ -86,7 +86,7 @@
run_once: true
- name: Hashing the custom admin password
shell: "{{ opendistro_sec_plugin_tools_path }}/hash.sh -p {{ opendistro_admin_password }}"
command: "{{ opendistro_sec_plugin_tools_path }}/hash.sh -p {{ opendistro_admin_password }}"
register: opendistro_admin_password_hashed
run_once: true
@ -145,7 +145,7 @@
return_content: yes
timeout: 4
when:
- opendistro_custom_user != ""
- opendistro_custom_user
tags:
- security