Execution
Date 08 Dec 2025 13:40:18 +0000
Duration 00:10:06.79
Controller aio1.openstack.local
User root
Versions
Ansible 2.18.6
ara 1.7.4 / 1.7.4
Python 3.12.11
Summary
15 Hosts
608 Tasks
2412 Results
18 Plays
158 Files
0 Records

File: /home/zuul/src/opendev.org/openstack/ansible-hardening/tasks/rhel7stig/async_tasks.yml

---
# Copyright 2017, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Multiple tasks will need the output of RPM verification, so let's do the
# lookup one time and then grep over the output in subsequent tasks.
- name: Verify all installed RPM packages
  shell: "rpm -Va > {{ temp_dir }}/rpmverify.txt" # noqa: command-instead-of-module
  failed_when: false
  changed_when: false
  register: rpmverify_task
  async: 3600
  poll: 0
  when:
    - not check_mode | bool
    - ansible_facts['os_family'] | lower in ['redhat', 'suse']
  tags:
    - rpm
    - high
    - V-71855
    - skip_ansible_lint

- name: Locate top level directories to check for .shosts
  ansible.builtin.find:
    paths: /
    file_type: directory
  register: shosts_dirs
  when:
    - not check_mode | bool
    - security_rhel7_remove_shosts_files | bool
  tags:
    - high
    - auth
    - V-72277
    - V-72279

- name: Check for .shosts or shosts.equiv files
  ansible.builtin.find:
    paths: "{{ shosts_dirs.files | map(attribute='path') | difference(security_rhel7_remove_shosts_exclude_dirs) }}"
    recurse: true
    hidden: true
    patterns: ".shosts,shosts.equiv"
  changed_when: false
  register: shosts_find
  async: 300
  poll: 0
  when:
    - not check_mode | bool
    - security_rhel7_remove_shosts_files | bool
  tags:
    - high
    - auth
    - V-72277
    - V-72279