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

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

主站蜘蛛池模板: 辛集市| 东城区| 固阳县| 南康市| 化德县| 五莲县| 新河县| 九江县| 澄城县| 昌图县| 茂名市| 阿合奇县| 临湘市| 稻城县| 搜索| 永寿县| 西和县| 乌拉特后旗| 晴隆县| 祥云县| 南宁市| 革吉县| 皋兰县| 吉隆县| 成都市| 巩留县| 海兴县| 翼城县| 清徐县| 收藏| 利川市| 肥东县| 顺昌县| 图片| 商水县| 泾川县| 泰和县| 伊金霍洛旗| 金秀| 西乡县| 玉龙|