Fix YAML linting issues in privacy role

This commit is contained in:
Dan Guido 2025-08-07 11:22:47 -07:00
parent d3333fcaa7
commit 540b250ee1
8 changed files with 10 additions and 10 deletions

View file

@ -54,4 +54,4 @@ privacy_advanced:
# Reduce kernel log verbosity
reduce_kernel_verbosity: true
# Clear logs on shutdown (use with caution)
clear_logs_on_shutdown: false
clear_logs_on_shutdown: false

View file

@ -26,4 +26,4 @@
name: privacy-shutdown-cleanup.service
enabled: yes
daemon_reload: yes
become: yes
become: yes

View file

@ -80,4 +80,4 @@
- " - VPN log filtering: {{ privacy_log_filtering.exclude_vpn_logs | bool }}"
- " - History clearing: {{ privacy_history_clearing.clear_bash_history | bool }}"
- " - Auto cleanup: {{ privacy_auto_cleanup.enabled | bool }}"
- " - Kernel verbosity reduction: {{ privacy_advanced.reduce_kernel_verbosity | bool }}"
- " - Kernel verbosity reduction: {{ privacy_advanced.reduce_kernel_verbosity | bool }}"

View file

@ -49,7 +49,7 @@
owner: root
group: root
when: privacy_advanced.clear_logs_on_shutdown | bool
notify:
notify:
- reload systemd
- enable privacy shutdown cleanup
@ -65,6 +65,6 @@
apt-get clean
apt-get autoclean
changed_when: false
when:
when:
- privacy_auto_cleanup.enabled | bool
- privacy_auto_cleanup.clean_package_cache | bool
- privacy_auto_cleanup.clean_package_cache | bool

View file

@ -58,4 +58,4 @@
- name: Clear current session history
shell: history -c
changed_when: false
when: privacy_history_clearing.clear_bash_history | bool
when: privacy_history_clearing.clear_bash_history | bool

View file

@ -58,4 +58,4 @@
- name: Display rsyslog test results
debug:
msg: "Rsyslog configuration test passed"
when: rsyslog_test.rc == 0
when: rsyslog_test.rc == 0

View file

@ -48,4 +48,4 @@
- name: Force immediate log rotation to apply new settings
command: /usr/sbin/logrotate -f /etc/logrotate.conf
changed_when: false
changed_when: false

View file

@ -33,4 +33,4 @@
debug:
msg: "Privacy enhancements have been successfully applied"
when: privacy_enhancements_enabled | bool
when: privacy_enhancements_enabled | bool