Migrate set_fact to FQCN.

This commit is contained in:
me
2026-10-02 11:23:31 -07:00
parent ab09a74bf2
commit b306064061
41 changed files with 150 additions and 150 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
# Ensure an existing run is not active, otherwise bail.
- name: General | Tests | Existing Run | Facts
set_fact:
ansible.builtin.set_fact:
lock_file: "/tmp/ansible-playbook.lock"
- name: General | Tests | Existing Run | Check
+2 -2
View File
@@ -2,11 +2,11 @@
# Lynis hardness check.
- name: General | Tests | Lynis | Set Facts
set_fact:
ansible.builtin.set_fact:
lynis_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ lynis_report }}"
- name: General | Tests | Lynis | Set Facts 2
set_fact:
ansible.builtin.set_fact:
lynis_temp_file: "{{ lynis_file }}.tmp"
- name: General | Tests | Lynis | Install
+2 -2
View File
@@ -2,12 +2,12 @@
# Nmap port test
- name: General | Tests | nmap | Set Facts
set_fact:
ansible.builtin.set_fact:
nmap_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ nmap_report }}"
nmap_separator: "\n*******************************\n"
- name: General | Tests | nmap | Set Facts 2
set_fact:
ansible.builtin.set_fact:
nmap_temp_file: "{{ nmap_file }}.tmp"
- name: General | Tests | nmap | Create Report
+3 -3
View File
@@ -2,18 +2,18 @@
# List all the services under the Reports folder.
- name: General | Tests | Services | Set Facts
set_fact:
ansible.builtin.set_fact:
services_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services.txt"
services_enabled_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services-enabled.txt"
services_command: "echo 'Service Manager {{ ansible_service_mgr }} Not Recognized'"
- name: General | Tests | Services | Set Facts | SystemD
set_fact:
ansible.builtin.set_fact:
services_command: "systemctl list-unit-files"
when: ansible_service_mgr == "systemd"
- name: General | Tests | Services | Set Facts | runit
set_fact:
ansible.builtin.set_fact:
services_command: 'for s in {{ runit_service_dir }}/*; do sv status "$s"; done'
when: ansible_service_mgr == "runit"