lint fixes

This commit is contained in:
willtome
2023-03-07 16:55:34 -05:00
parent 745b755296
commit 40c31d8e6e
64 changed files with 583 additions and 578 deletions

View File

@@ -3,10 +3,10 @@
hosts: "{{ _hosts | default('web') }}"
become: true
vars:
- harden_firewall: false
- harden_time: false
- harden_ssh: false
- harden_pci: false
harden_firewall: false
harden_time: false
harden_ssh: false
harden_pci: false
tasks:
- name: Configure Firewall

View File

@@ -3,7 +3,7 @@
hosts: "{{ _hosts | default(omit) }}"
become: true
vars:
# compliance_profile: undef
compliance_profile_configured: undef
tasks:
- name: Check OS Type

View File

@@ -2,7 +2,6 @@
- name: Linux server patching
hosts: "{{ _hosts | default(omit) }}"
become: true
strategy: linear
vars:
report_server: node1
@@ -23,7 +22,7 @@
when:
- ansible_local.insights.system_id is not defined
- name: Run the Insights Client Scan
- name: Run the Insights Client Scan # noqa: no-changed-when
ansible.builtin.command: insights-client
when:
- not ansible_check_mode
@@ -31,7 +30,7 @@
- name: Deploy report server
delegate_to: "{{ report_server }}"
run_once: true
run_once: true # noqa: run-once[task]
block:
- name: Build report server
ansible.builtin.include_role:

View File

@@ -4,15 +4,15 @@
become: true
tasks:
- name: Gather recent vmstat info
- name: Gather recent vmstat info # noqa: no-changed-when
ansible.builtin.command: /bin/vmstat 1 5
register: vmstat
- name: Gather top CPU hogs
- name: Gather top CPU hogs # noqa: no-changed-when
ansible.builtin.command: ps -eo user,pid,size,pcpu,cmd --sort=-pcpu
register: pscpu
- name: Gather top memory hogs
- name: Gather top memory hogs # noqa: no-changed-when
ansible.builtin.command: ps -eo user,pid,size,pcpu,cmd --sort=-size
register: pssize