From ba98477576cca605d97c90cd7f6088d2d81e0de7 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 2 Oct 2026 10:25:24 -0700 Subject: [PATCH] ansible, remove the date from the log file name since that's about when the logs stopped appearing anywhere at all. --- tasks/general/cron/ansible.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/general/cron/ansible.yml b/tasks/general/cron/ansible.yml index cea947e..9995f98 100644 --- a/tasks/general/cron/ansible.yml +++ b/tasks/general/cron/ansible.yml @@ -10,14 +10,15 @@ - name: General | Cron | Ansible | Facts set_fact: - ansible_cron_log: "~/{{ ansible_hostname }}.ansible-pull.`date +'%Y%m%d-%H%M%S'`.log" + #ansible_cron_log: "~/{{ ansible_hostname }}.ansible-pull.`date +'%Y%m%d-%H%M%S'`.log" + ansible_cron_log: "~/{{ ansible_hostname }}.ansible-pull.log" - name: General | Cron | Ansible | Create Subscriber Job cron: user: ansible name: "Ansible Sync" minute: "*/30" - job: "bash -c 'sleep $(( $RANDOM / 20 )); sudo {{ ansible_pull_exec.stdout }} -v -o -U {{ git_repo_http }} --checkout {{ branch }} >{{ ansible_cron_log }} 2>&1'" + job: "bash -c 'sleep $(( $RANDOM / 20 )); sudo {{ ansible_pull_exec.stdout }} -v -o -U {{ git_repo_http }} --checkout {{ branch }} >>{{ ansible_cron_log }} 2>&1'" state: present disabled: "{{ 'yes' if no_telem else 'no' }}" @@ -26,6 +27,6 @@ user: ansible name: "Ansible Weekly Forced Sync" special_time: weekly - job: "bash -c 'sleep $(( $RANDOM / 1 )); sudo {{ ansible_pull_exec.stdout }} -v -U {{ git_repo_http }} --checkout {{ branch }} >{{ ansible_cron_log }} 2>&1'" + job: "bash -c 'sleep $(( $RANDOM / 1 )); sudo {{ ansible_pull_exec.stdout }} -v -U {{ git_repo_http }} --checkout {{ branch }} >>{{ ansible_cron_log }} 2>&1'" state: present disabled: "{{ 'yes' if no_telem else 'no' }}"