
In order to reduce divergance with ansible-lint rules, we apply auto-fixing of violations. In current patch we replace all kind of truthy variables with `true` or `false` values to align with recommendations along with alignment of used quotes. Change-Id: I10eaed0d5f7b2a02379d9708da04ef26c31fba5e
18 lines
472 B
YAML
18 lines
472 B
YAML
---
|
|
- name: Gather security hardening facts
|
|
hosts: "{{ security_host_group|default('hosts') }}"
|
|
gather_facts: true
|
|
tags:
|
|
- always
|
|
|
|
- name: Apply security hardening configurations
|
|
hosts: "{{ security_host_group|default('hosts') }}"
|
|
gather_facts: false
|
|
user: root
|
|
roles:
|
|
- role: "ansible-hardening"
|
|
when: apply_security_hardening | default(True) | bool
|
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
|
tags:
|
|
- security
|