{"id":33,"date":"2023-12-20T20:38:39","date_gmt":"2023-12-20T18:38:39","guid":{"rendered":"https:\/\/xavs.cat\/?p=33"},"modified":"2023-12-20T20:47:49","modified_gmt":"2023-12-20T18:47:49","slug":"el-teu-propi-entorn-dexecucio-a-ansible-awx","status":"publish","type":"post","link":"https:\/\/xavs.cat\/?p=33","title":{"rendered":"El teu propi Entorn d&#8217;execuci\u00f3 a Ansible AWX"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Amb Docker instal-lat:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Creem el pitcher \/opt\/awx\/collections\/Dockerfile amb el seg\u00fcent contingut:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FROM quay.io\/ansible\/awx-ee:latest\n\nRUN ansible-galaxy collection install community.general &amp;&amp; \\\n    ansible-galaxy collection install community.windows\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Carreguem a Docker:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker build -t awx-ee-itops:1.0 .<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Li afegim un tag:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker tag awx-ee-itops:1.0 se-awx-git.domain.lan\/awx\/awx-ee-itops:1.0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Fem push contra el nosher Registry de Docker:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker push se-awx-git.domain.lan\/awx\/awx-ee-itops:1.0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Dins d&#8217;AWX, creem una entrada dins de Credencials del tipus&nbsp;Registry&nbsp;i despr\u00e9s ens dirigim a Entorns d&#8217;execuci\u00f3 per a crear el nostre Entorn personalitzat:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a21dddf8ad79&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a21dddf8ad79\" class=\"wp-block-image size-large is-style-twentytwentyone-border wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"739\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/xavs.cat\/wp-content\/uploads\/2023\/12\/image-1024x739.png\" alt=\"\" class=\"wp-image-34\" srcset=\"https:\/\/xavs.cat\/wp-content\/uploads\/2023\/12\/image-1024x739.png 1024w, https:\/\/xavs.cat\/wp-content\/uploads\/2023\/12\/image-300x217.png 300w, https:\/\/xavs.cat\/wp-content\/uploads\/2023\/12\/image-768x554.png 768w, https:\/\/xavs.cat\/wp-content\/uploads\/2023\/12\/image-1536x1109.png 1536w, https:\/\/xavs.cat\/wp-content\/uploads\/2023\/12\/image-1568x1132.png 1568w, https:\/\/xavs.cat\/wp-content\/uploads\/2023\/12\/image.png 1636w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Amb Docker instal-lat: Creem el pitcher \/opt\/awx\/collections\/Dockerfile amb el seg\u00fcent contingut: Carreguem a Docker: Li afegim un tag: Fem push contra el nosher Registry de Docker: Dins d&#8217;AWX, creem una entrada dins de Credencials del tipus&nbsp;Registry&nbsp;i despr\u00e9s ens dirigim a Entorns d&#8217;execuci\u00f3 per a crear el nostre Entorn personalitzat:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20,21],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-ansible","category-awx","category-registry"],"_links":{"self":[{"href":"https:\/\/xavs.cat\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xavs.cat\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xavs.cat\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xavs.cat\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xavs.cat\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":2,"href":"https:\/\/xavs.cat\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/xavs.cat\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/xavs.cat\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xavs.cat\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xavs.cat\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}