lint fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
hosts: "{{ _hosts | default(omit) }}"
|
||||
become: true
|
||||
vars:
|
||||
# compliance_profile: undef
|
||||
compliance_profile_configured: undef
|
||||
|
||||
tasks:
|
||||
- name: Check OS Type
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user