Fix Ansible linting errors
This commit is contained in:
parent
81f8703749
commit
3a63c27f9d
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user