Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .yamllint

This file was deleted.

12 changes: 12 additions & 0 deletions roles/elasticsearch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
changed_when: false
when: ansible_os_family == 'Debian'

- name: Update dnf cache.
ansible.builtin.dnf:
update_cache: true
changed_when: false
when: ansible_os_family == 'RedHat'

- name: Rocky Specific Python Change.
ansible.builtin.package:
- name: python3
- state: present
when: ansible_distribution == 'Rocky'

- name: Check-set-parameters
ansible.builtin.include_tasks: elasticsearch-parameters.yml

Expand Down Expand Up @@ -275,7 +287,7 @@
- name: Check for cluster status without security
ansible.builtin.uri:
# kics-scan ignore-line
url: "http://{{ elasticsearch_api_host }}:{{ elasticstack_elasticsearch_http_port }}/_cluster/health?pretty"

Check warning on line 290 in roles/elasticsearch/tasks/main.yml

View workflow job for this annotation

GitHub Actions / kics

[MEDIUM] Communication Over HTTP

Using HTTP URLs (without encryption) could lead to security vulnerabilities and risks
register: elasticsearch_cluster_status
ignore_errors: "{{ ansible_check_mode }}"
until: elasticsearch_cluster_status.json.status == "green"
Expand Down
8 changes: 5 additions & 3 deletions roles/repos/.yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ extends: default

rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
brackets:
level: error
max-spaces-inside: 1
colons:
max-spaces-after: -1
level: error
max-spaces-after: -1
commas:
max-spaces-after: -1
level: error
Expand All @@ -31,3 +31,5 @@ rules:
type: unix
trailing-spaces: disable
truthy: disable
octal-values:
forbid-implicit-octal: true
Loading