{"id":1768,"date":"2020-12-10T14:18:57","date_gmt":"2020-12-10T13:18:57","guid":{"rendered":"http:\/\/robermb.com\/blog\/?p=1768"},"modified":"2020-12-22T17:32:06","modified_gmt":"2020-12-22T16:32:06","slug":"change-default-logos-in-ansible-awx","status":"publish","type":"post","link":"https:\/\/robermb.com\/blog\/geeks\/change-default-logos-in-ansible-awx\/","title":{"rendered":"Ansible AWX: How to change default logos on the Web"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Upload logos<\/h3>\n\n\n\n<p>First step, <strong>upload <\/strong>the custom <strong>logos <\/strong>to <strong>Ansible AWX<\/strong> machine. There are two different logos, the <strong>login <\/strong>logo and the <strong>header <\/strong>logo.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Copy logos to awxcompose<\/h3>\n\n\n\n<p><strong>Copy <\/strong>both <strong>logos <\/strong>to your compose dir :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cp \/tmp\/custom-logo-login.svg  \/root\/.awx\/awxcompose\n# cp \/tmp\/custom-logo-header.svg  \/root\/.awx\/awxcompose<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Modify docker-compose.yml<\/h3>\n\n\n\n<p>Modify <strong>docker-compose.yml<\/strong> file and add the following information in the section <strong>\u00ab awx_web \u00bb<\/strong> :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cd \/root\/.awx\/awxcompose\n# vi docker-compose.yml<\/code><\/pre>\n\n\n\n<p>&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#LOGO custom-logo.svg\n      - \"~\/.awx\/awxcompose\/custom-logo-login.svg:\/var\/lib\/awx\/venv\/awx\/lib\/python3.6\/site-packages\/awx\/ui\/static\/assets\/logo-login.svg\"\n      - \"~\/.awx\/awxcompose\/custom-logo-header.svg:\/var\/lib\/awx\/venv\/awx\/lib\/python3.6\/site-packages\/awx\/ui\/static\/assets\/logo-header.svg\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Modify template docker-compose.yml.j2<\/h3>\n\n\n\n<p><strong>Modify <\/strong>also the template <strong>docker-compose.yml.j2<\/strong> file with same information :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cd \/opt\/ansible-awx\/awx\/installer\/roles\/local_docker\/templates\n# vi docker-compose.yml.j2<\/code><\/pre>\n\n\n\n<p>&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#LOGO custom-logo.svg\n      - \"~\/.awx\/awxcompose\/custom-logo-login.svg:\/var\/lib\/awx\/venv\/awx\/lib\/python3.6\/site-packages\/awx\/ui\/static\/assets\/logo-login.svg\"\n      - \"~\/.awx\/awxcompose\/custom-logo-header.svg:\/var\/lib\/awx\/venv\/awx\/lib\/python3.6\/site-packages\/awx\/ui\/static\/assets\/logo-header.svg\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Launch installation<\/h3>\n\n\n\n<p><strong>Launch <\/strong>the <strong>installation <\/strong>to rebuild the containers with the updated information :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cd \/opt\/ansible-awx\/awx\/installer\n# ansible-playbook -i inventory install.yml<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Upload logos First step, upload the custom logos to Ansible AWX machine. There are two different logos, the login logo &hellip; <a href=\"https:\/\/robermb.com\/blog\/geeks\/change-default-logos-in-ansible-awx\/\" class=\"more-link\">More <span class=\"screen-reader-text\">Ansible AWX: How to change default logos on the Web<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1805,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[103,2],"tags":[106,112,111],"_links":{"self":[{"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/posts\/1768"}],"collection":[{"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/comments?post=1768"}],"version-history":[{"count":6,"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/posts\/1768\/revisions"}],"predecessor-version":[{"id":1794,"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/posts\/1768\/revisions\/1794"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/media\/1805"}],"wp:attachment":[{"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/media?parent=1768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/categories?post=1768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robermb.com\/blog\/wp-json\/wp\/v2\/tags?post=1768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}