From 109245a996c427c24302377d3c8abde32d13d318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Fuxj=C3=A4ger?= Date: Mon, 28 Apr 2025 10:47:35 +0200 Subject: [PATCH] Fix linting messages --- tasks/noauto_create_timer_cron.yml | 2 +- tasks/noauto_create_timer_systemd.yml | 4 +++- tasks/noauto_install_package.yml | 16 ++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/tasks/noauto_create_timer_cron.yml b/tasks/noauto_create_timer_cron.yml index 4f999d8..d1241db 100644 --- a/tasks/noauto_create_timer_cron.yml +++ b/tasks/noauto_create_timer_cron.yml @@ -26,6 +26,6 @@ user: "{{ borg_user }}" cron_file: "{{ borgmatic_timer_cron_name }}" name: PATH - env: yes + env: true value: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ... diff --git a/tasks/noauto_create_timer_systemd.yml b/tasks/noauto_create_timer_systemd.yml index aa454b6..40619df 100644 --- a/tasks/noauto_create_timer_systemd.yml +++ b/tasks/noauto_create_timer_systemd.yml @@ -61,5 +61,7 @@ - name: Show hints when: "'backup_init_repo' not in ansible_run_tags" ansible.builtin.debug: - msg: "Attention: Since the repo was not initialized automatically, the systemd service (borgmatic.service) and the timer (borgmatic.timer) are not activated." + msg: >- + Attention: Since the repo was not initialized automatically, + the systemd service (borgmatic.service) and the timer (borgmatic.timer) are not activated. ... diff --git a/tasks/noauto_install_package.yml b/tasks/noauto_install_package.yml index 5f28a58..5b9346a 100644 --- a/tasks/noauto_install_package.yml +++ b/tasks/noauto_install_package.yml @@ -4,14 +4,14 @@ - name: Check if EPEL repo is enabled, if installation from distro is requested when: borg_require_epel block: - - name: Get list of installed packages - ansible.builtin.package_facts: - manager: auto - - name: Ensure EPEL is enabled - ansible.builtin.assert: - that: - - "'epel-release' in ansible_facts.packages" - fail_msg: Need EPEL repo to install via distro package. + - name: Get list of installed packages + ansible.builtin.package_facts: + manager: auto + - name: Ensure EPEL is enabled + ansible.builtin.assert: + that: + - "'epel-release' in ansible_facts.packages" + fail_msg: Need EPEL repo to install via distro package. - name: Install borgmatic and borg via distribution package manager ansible.builtin.package: