add Jenkins tools "Ansible"

This commit is contained in:
dima 2024-10-20 13:44:03 +03:00
parent bd630368ab
commit 40e7acd0e8
2 changed files with 5 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -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 {

View File

@ -4,7 +4,7 @@
become: true
vars:
backup_dir: "{{ backup_dir }}" #work
backup_dir: "{{ backup_dir }}"
tasks:
- name: Create backup directory