Closed mildas closed 2 years ago
The main problem here is that the lineinfile
ansible module only replaces the last occurrence of a line, leaving other matching lines untouched. In this case for example, there are multiple lines of server
in the RHEL7 instance and only the last one has the maxpoll
added. The correct approach is to use the replace
ansible module instead that is able to change all the matching lines.
Description of problem:
Two
chronyd_or_ntpd_set_maxpoll
test scenarios are failing during final stage:SCAP Security Guide Version:
ece8437
Operating System Version:
RHEL 7
Steps to Reproduce:
python3 tests/test_suite.py rule --libvirt qemu:///session test-suite-rhel7 --datastream build/ssg-rhel7-ds.xml --no-reports chronyd_or_ntpd_set_maxpoll
Actual Results:
Some test scenarios fails
Expected Results:
All test scenarios passes