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

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

主站蜘蛛池模板: 安宁市| 阿城市| 康定县| 华容县| 吕梁市| 长春市| 腾冲县| 炎陵县| 固阳县| 栾川县| 罗江县| 鄂托克旗| 丹寨县| 利辛县| 嵩明县| 林甸县| 阳朔县| 宣武区| 农安县| 中山市| 革吉县| 福贡县| 凌海市| 揭东县| 永昌县| 化隆| 建德市| 淮阳县| 凭祥市| 南川市| 黄平县| 马公市| 宜君县| 明星| 大城县| 门头沟区| 永平县| 白朗县| 盐源县| 正定县| 博乐市|