2023-01-13 11:05:25 +00:00
|
|
|
|
---
|
|
|
|
|
|
# This task is used to create variables used in giving a warning summary for manual tasks
|
|
|
|
|
|
# that need attention
|
|
|
|
|
|
#
|
|
|
|
|
|
# The warn_control_list and warn_count vars start life in vars/main.yml but get updated
|
|
|
|
|
|
# as the tasks that have a warning complete
|
|
|
|
|
|
#
|
|
|
|
|
|
# Those two variables are used in the tasks/main.yml to display a list of warnings
|
|
|
|
|
|
#
|
|
|
|
|
|
# warn_control_id is set within the task itself and has the control ID as the value
|
|
|
|
|
|
#
|
|
|
|
|
|
# warn_control_list is the main variable to be used and is a list made up of the warn_control_id’s
|
|
|
|
|
|
#
|
|
|
|
|
|
# warn_count the main variable for the number of warnings and each time a warn_control_id is added
|
|
|
|
|
|
# the count increases by a value of 1
|
2024-12-04 11:45:13 +00:00
|
|
|
|
- name: "{{ warn_control_id }} | AUDIT | Set fact for manual task warning." # noqa name[template]
|
2023-01-13 11:05:25 +00:00
|
|
|
|
ansible.builtin.set_fact:
|
2024-07-19 17:01:23 +01:00
|
|
|
|
warn_control_list: "{{ warn_control_list }} [{{ warn_control_id }}]"
|
|
|
|
|
|
warn_count: "{{ warn_count | int + 1 }}"
|