<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ansible Archives - VirtJunkie</title>
	<atom:link href="/category/automation/ansible/feed/" rel="self" type="application/rss+xml" />
	<link>/category/automation/ansible/</link>
	<description>Virtualization, Automation, and anything else that might be on my mind</description>
	<lastBuildDate>Fri, 14 Dec 2018 22:45:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>

<image>
	<url>/wp-content/uploads/2020/04/cropped-vj4-150x150.png</url>
	<title>Ansible Archives - VirtJunkie</title>
	<link>/category/automation/ansible/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Ubuntu Cosmic 18.10 &#8211; Use Ansible To Deploy Docker</title>
		<link>/2018/12/14/ubuntu-cosmic-18-10-use-ansible-to-deploy-docker/</link>
					<comments>/2018/12/14/ubuntu-cosmic-18-10-use-ansible-to-deploy-docker/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Fri, 14 Dec 2018 22:45:36 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://www.virtjunkie.com/?p=712</guid>

					<description><![CDATA[<p>As it turns out, Docker doesn&#8217;t officially support any version of Ubuntu past Artful. This is a bit of a challenge if you want to use a state configuration manager such as Ansible to deploy Docker, or even if you want to install it manually. I was able to get this working by using the [&#8230;]</p>
<p>The post <a href="/2018/12/14/ubuntu-cosmic-18-10-use-ansible-to-deploy-docker/">Ubuntu Cosmic 18.10 &#8211; Use Ansible To Deploy Docker</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>As it turns out, Docker doesn&#8217;t <a href="https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/ubuntu/#os-requirements">officially support</a> any version of Ubuntu past Artful. This is a bit of a challenge if you want to use a state configuration manager such as Ansible to deploy Docker, or even if you want to install it manually. I was able to get this working by using the test branch of the docker release for Ubuntu Cosmic.</p>



<span id="more-712"></span>



<p>&nbsp;I found a <a href="https://galaxy.ansible.com/geerlingguy/docker">popular role in Ansible Galaxy</a>&nbsp;with a ton of installs, but the documentation that comes with it doesn&#8217;t work, which is fine&#8230; not a supported version, etc. I used the steps below to get it working.<br></p>



<p>Please be aware, the test branch is likely not stable, and shouldn&#8217;t be used for production. Follow this at your own risk.</p>



<p>1.) Run the command below to install the role</p>



<pre class="urvanov-syntax-highlighter-plain-tag">root@server:~$ ansible-galaxy install geerlingguy.docker</pre>



<p>2.) Create a text file named &#8220;install-docker.yml&#8221;<br>&nbsp; &#8211; The value assigned to docker_apt_release_channel being &#8220;test&#8221;.<br>&nbsp; &#8211; Add your own username(s) under &#8220;docker_users&#8221;<br>(This yaml file is located on my github page here: <a href="https://github.com/jonhowe/Virtjunkie.com/blob/master/install-docker.yml">https://github.com/jonhowe/Virtjunkie.com/blob/master/install-docker.yml</a>)</p>



<pre class="urvanov-syntax-highlighter-plain-tag">---
- name: Install Docker
  hosts: all
  become: yes
  become_method: sudo
  tasks:
  - name: Install Docker and docker-compose
    include_role:
       name: geerlingguy.docker
    vars:
       - docker_edition: 'ce'
       - docker_apt_release_channel: test
       - docker_package_state: present
       - docker_install_compose: true
       - docker_compose_version: &quot;1.22.0&quot;
       - docker_users:
          - jhowe</pre>



<p>3.) Then it&#8217;s as easy as running the playbook</p>



<pre class="urvanov-syntax-highlighter-plain-tag">root@server:~$ ansible-playbook -K install-docker.yml</pre>
<p>The post <a href="/2018/12/14/ubuntu-cosmic-18-10-use-ansible-to-deploy-docker/">Ubuntu Cosmic 18.10 &#8211; Use Ansible To Deploy Docker</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2018/12/14/ubuntu-cosmic-18-10-use-ansible-to-deploy-docker/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
