ComplianceAsCode / ComplianceAsCode/content

An empty file is created when building Ansible playbooks for individual rules

Open
#10,734 5 comments 0 reactions 0 assignees View on GitHub
Ansible Infrastructure triaged
Dominant language
Shell
Stars
2.8k
Forks
828
Avg merge
3d 8m
Merged PRs (30d)
80

Description

#### Description of problem:

When building the "one playbook per rule" playbooks, there is an empty file created in the directory structure. The file has no meaning as far as I know. It caused problems in some tests (not present in this repo).

#### SCAP Security Guide Version:

master

#### Operating System Version:

any

#### Steps to Reproduce:

1. env ADDITIONAL_CMAKE_OPTIONS="-D SSG_ANSIBLE_PLAYBOOKS_PER_RULE_ENABLED=true" ./build_product rhel9
2. cd build/rhel8/playbooks
3. ls

#### Actual Results:
You will see an empty file called ansible_playbooks-rhel8.

#### Expected Results:
The file should not be there unless it is needed.

#### Additional Information/Debugging Steps:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.