From 40e7acd0e8fade9c8e9de118e793757ae7aee44e Mon Sep 17 00:00:00 2001 From: dima Date: Sun, 20 Oct 2024 13:44:03 +0300 Subject: [PATCH] add Jenkins tools "Ansible" --- Jenkinsfile | 5 ++++- backup_postgresql.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9bac84d..d9cadb8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,11 @@ pipeline { agent any + tools { + ansible 'Ansible' + } environment { SSH_ROOT_PASSWORD = credentials('ssh_root_password') - PSQL_PASSWORD = credentials('PSQL_pass') + PSQL_PASSWORD = credentials('PSQL_pass') ANSIBLE_HOST_KEY_CHECKING = 'False' } parameters { diff --git a/backup_postgresql.yml b/backup_postgresql.yml index 56a0871..8eaf780 100644 --- a/backup_postgresql.yml +++ b/backup_postgresql.yml @@ -4,7 +4,7 @@ become: true vars: - backup_dir: "{{ backup_dir }}" #work + backup_dir: "{{ backup_dir }}" tasks: - name: Create backup directory