aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
blob: 3cbfdd08364a92f823db246dcfb26c90eafb4fd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pipeline {
    agent any
    stages {
        stage('Checkout') {
            steps {
			    checkout scm
            }
        }

        stage('Deploy') {
			when { branch 'master' }
			steps {
				sh 'ansible-galaxy install -r requirements.yml'
				ansiblePlaybook become: true, credentialsId: 'jenkins_freeipa_ssh', disableHostKeyChecking: true, installation: 'Default', inventory: 'inventory.yml', playbook: 'run.yml', vaultCredentialsId: 'ansible_vault'
			}
		}
    }
	post {
        always {
            recordIssues enabledForFailure: true, tools: [ansibleLint(pattern: '**/run.yml')]
        }
    }
}