From 421afce966b400f2ebe07cc79e62affc3e847d2a Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Mon, 5 Jun 2023 14:37:08 +0200 Subject: [PATCH] added Jenkinsfile --- Jenkinsfile | 2 +- test_play.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 949e0d3..f4bf927 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ pipeline { stage('Ansible') { agent any steps { - ansiblePlaybook credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: '192.168.150.40,', playbook: 'test_play.yml' + ansiblePlaybook credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: 'locahost,', playbook: 'test_play.yml' } } } diff --git a/test_play.yml b/test_play.yml index c41b05a..d048eec 100755 --- a/test_play.yml +++ b/test_play.yml @@ -3,9 +3,9 @@ - name: "TestPlay" gather_facts: true become: true - hosts: 192.168.150.40 - #hosts: localhost - #connection: local + #hosts: 192.168.150.40 + hosts: localhost + connection: local tasks: - debug: msg: "Hello World"