官术网_书友最值得收藏!

Jenkins Ansible integration configuration

Not surprisingly, Jenkins supports SCM to use playbooks and local directories for manual playbooks too. This can be configured with the build options. Jenkins supports both ad-hoc commands and playbooks to trigger as a build (or) post-build action.

The following screenshot shows how we can point our repository and specify a branch as well. We can also specify credentials if we want to access private repositories:

Adding Github (SCM) based playbooks for build

Then we can add the Playbook path by specifying the location of the playbook and defining inventory and variables as required:

Start playbook execution when build triggers

Finally, we can execute the Jenkins job by triggering the Jenkins build (or) we can integrate this with other tools:

Jenkins build output of playbook execution

主站蜘蛛池模板: 遂昌县| 溆浦县| 扶绥县| 新津县| 敖汉旗| 土默特右旗| 汕尾市| 安徽省| 灵山县| 汤原县| 乐业县| 汕尾市| 祁东县| 肇源县| 甘德县| 胶南市| 扎赉特旗| 南投县| 武穴市| 喀什市| 大渡口区| 东阳市| 岐山县| 桦南县| 莒南县| 淮南市| 鸡西市| 柳林县| 毕节市| 栖霞市| 鄄城县| 翁牛特旗| 鸡西市| 香格里拉县| 沙雅县| 长沙市| 多伦县| 汉中市| 兴安盟| 海门市| 湘乡市|