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