{"id":59281,"date":"2020-06-09T12:06:23","date_gmt":"2020-06-09T11:06:23","guid":{"rendered":"http:\/\/content.n4stack.io\/?p=59281"},"modified":"2021-04-20T14:45:33","modified_gmt":"2021-04-20T13:45:33","slug":"azure-devops-ansible-pipeline","status":"publish","type":"post","link":"http:\/\/content.n4stack.io\/2020\/06\/09\/azure-devops-ansible-pipeline\/","title":{"rendered":"Azure DevOps Ansible Pipeline"},"content":{"rendered":"

[et_pb_section fb_built=”1″ fullwidth=”on” _builder_version=”4.9.1″ _module_preset=”default”][et_pb_fullwidth_post_title categories=”off” comments=”off” featured_image=”off” text_color=”light” _builder_version=”4.9.1″ _module_preset=”default” background_color=”#3d3d3d” custom_padding=”200px||100px||false|false”][\/et_pb_fullwidth_post_title][\/et_pb_section][et_pb_section fb_built=”1″ _builder_version=”4.0.11″][et_pb_row _builder_version=”4.0.11″][et_pb_column type=”4_4″ _builder_version=”4.0.11″][et_pb_text _builder_version=”4.4.7″ text_font_size=”18px” header_3_text_color=”#e05206″ header_5_text_color=”#00a9e0″]<\/p>\n

I thought it was about time that I started to have a play with Azure DevOps<\/a> a little more than I have been doing. One of the things I have always meant to look at in the past is using DevOps to run Ansible playbooks.<\/p>\n

However the\u00a0Ansible Task<\/a>\u00a0recommended by Microsoft has always put me off, the reason for this is that this task requires a Virtual Machine to run Ansible – this to me always seemed a little overkill.<\/p>\n

As I had some time I thought I would sit down and have a look at coming up with a pipeline which executes an Ansible playbook which doesn’t use the Ansible Task. As I had already done some work with Python based command line tools on Azure DevOps I thought it best to take the same approach as I took with those to my Ansible pipeline.<\/p>\n

As you can see, the start of the pipeline is pretty straight foward, I am triggering whenever\u00a0master<\/code> is pushed to, and using, the latest Ububtu VM image:<\/p>\n

[\/et_pb_text][et_pb_code _builder_version=”4.4.7″]