add Jenkins tools "Ansible"
This commit is contained in:
parent
bd630368ab
commit
40e7acd0e8
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -1,8 +1,11 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
tools {
|
||||||
|
ansible 'Ansible'
|
||||||
|
}
|
||||||
environment {
|
environment {
|
||||||
SSH_ROOT_PASSWORD = credentials('ssh_root_password')
|
SSH_ROOT_PASSWORD = credentials('ssh_root_password')
|
||||||
PSQL_PASSWORD = credentials('PSQL_pass')
|
PSQL_PASSWORD = credentials('PSQL_pass')
|
||||||
ANSIBLE_HOST_KEY_CHECKING = 'False'
|
ANSIBLE_HOST_KEY_CHECKING = 'False'
|
||||||
}
|
}
|
||||||
parameters {
|
parameters {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
backup_dir: "{{ backup_dir }}" #work
|
backup_dir: "{{ backup_dir }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create backup directory
|
- name: Create backup directory
|
||||||
|
Loading…
Reference in New Issue
Block a user