From 5faa530ac9f8bdc0bb3e627a46d6978b7ffb041f Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sat, 7 May 2022 19:43:12 +0200 Subject: [PATCH] some fixed --- restic-backups/.gitlab-ci.yml | 10 ---------- restic-backups/tasks/main.yml | 6 +----- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 restic-backups/.gitlab-ci.yml diff --git a/restic-backups/.gitlab-ci.yml b/restic-backups/.gitlab-ci.yml deleted file mode 100644 index fde5e21..0000000 --- a/restic-backups/.gitlab-ci.yml +++ /dev/null @@ -1,10 +0,0 @@ -image: alpine:3.12 - -stages: - - test - -lint: - stage: test - script: - - apk add --update ansible-lint --no-cache - - ansible-lint -p ${CI_PROJECT_DIR}/playbook.yaml diff --git a/restic-backups/tasks/main.yml b/restic-backups/tasks/main.yml index 1e9161f..6164760 100644 --- a/restic-backups/tasks/main.yml +++ b/restic-backups/tasks/main.yml @@ -1,8 +1,4 @@ --- -- name: Include vault file - include_vars: - file: "vault/vault.yml" - - name: Install and setup restic backups when: restic_password | length > 0 become: yes @@ -97,7 +93,7 @@ state: present user: root value: "{{ item.value }}" - cron_file: restic_backup + cron_file: "{{ restic_cron_params.name }}" loop: - { name: "RESTIC_REPOSITORY", value: "{{ restic_repository }}" } - { name: "RESTIC_PASSWORD", value: "{{ restic_password }}" }