Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI User committed Feb 4, 2019
0 parents commit 6853093
Show file tree
Hide file tree
Showing 581 changed files with 66,577 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
116 changes: 116 additions & 0 deletions ansible-archlinux-upgrade.html
@@ -0,0 +1,116 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title> Ansible-playbook archlinux upgrade
</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://visibilityspots.github.io/blog/theme/css/normalize.css">
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://visibilityspots.github.io/blog/theme/css/font-awesome.min.css">
<link rel="stylesheet" href="https://visibilityspots.github.io/blog/theme/css/main.css">
<link rel="stylesheet" href="https://visibilityspots.github.io/blog/theme/tipuesearch/tipuesearch.css">

<link rel="stylesheet" href="https://visibilityspots.github.io/blog/theme/css/blog.css">
<link rel="stylesheet" href="https://visibilityspots.github.io/blog/theme/css/github.css">
<link href="https://visibilityspots.github.io/blog/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="visibilityspots Atom Feed" />
<link href="https://visibilityspots.github.io/blog/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="visibilityspots RSS Feed" />
<script src="https://visibilityspots.github.io/blog/theme/js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->

<div id="wrapper">
<header id="sidebar" class="side-shadow">
<hgroup id="site-header">
<a id="site-title" href="https://visibilityspots.github.io/blog"><h1>visibilityspots <i class="icon-dashboard"></i></h1></a>
<p id="site-desc"> Linux & Open-Source enthusiast | Scouting | Longboarding </p>
</hgroup>
<form id="searchform" action="https://visibilityspots.github.io/blog/search.html" onsubmit="return (this.elements['q'].value.length > 0)">
<input id="searchbox" type="text" name="q" size="12" placeholder="search">
</form>
<nav>
<ul id="nav-links">
<li><a href="https://visibilityspots.github.io/blog/">Blog</a></li>
<li><a href="https://visibilityspots.github.io/blog/pages/profile.html">Profile</a></li>
<li><a href="https://visibilityspots.github.io/blog/pages/links.html">Links</a></li>
<li><a href="https://visibilityspots.github.io/blog/pages/projects.html">Projects</a></li>
<li><a href="https://visibilityspots.github.io/blog/pages/tools.html">Tools</a></li>
<li><a href="https://visibilityspots.github.io/blog/pages/contact.html">Contact</a></li>
</ul>
</nav>
Categories:
<ul>
<li><a href="https://visibilityspots.github.io/blog/category/android.html">android</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/apple.html">apple</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/automation.html">automation</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/cloud.html">cloud</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/conferences.html">conferences</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/containers.html">containers</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/home-automation.html">home-automation</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/linux.html">linux</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/networking.html">networking</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/php.html">php</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/puppet.html">puppet</a></li>
<li><a href="https://visibilityspots.github.io/blog/category/security.html">security</a></li>
</ul>
<footer id="site-info">
<a href="http://creativecommons.org/licenses/by-nc/2.0/be/deed.nl">License</a> | 2009 - 2018 <a href="https://visibilityspots.github.io/blog">visibilityspots.github.io/blog</a> | Generated by <a href="http://getpelican.com/" target="pelican">Pelican</a> | Hosted at <a href="https://pages.github.com/" target="github pages">github pages</a> | <a href="https://visibilityspots.github.io/blog/feeds/all.atom.xml" rel="alternate">Atom</a> feed
</footer></header>
<div id="post-container">
<ol id="post-list">
<li>
<article class="post-entry">
<header class="entry-header">
<a href="https://visibilityspots.github.io/blog/ansible-archlinux-upgrade.html" rel="bookmark"><h1>Ansible-playbook archlinux upgrade</h1></a>
<div><p>takes 0 minutes to read</p></div> <time class="post-time" datetime="2018-08-06T19:00:00+02:00" pubdate>
last modified at Tue 30 October 2018
</time>
</header>
<section class="post-content">
<p>Since a few years now I'm a happy <a href="https://www.archlinux.org/">Archlinux</a> user. I like their <a href="https://wiki.archlinux.org/index.php/Arch_Linux">philosophy</a> which was one of the major points why I made the switch back in the days.</p>
<p>I'm not only using it on my laptop, but do have some devices running at home which are configured with it. From a thin client which I use as a docker node through some raspberry pies running <a href="https://archlinuxarm.org/">ArchlinuxARM</a>.</p>
<p>Since Arch is a rolling update distro there are several updates available throughout the day. To keep on top of them I had to log in on all those devices at least once a day to perform the updates. Experience learned me that let them drifting could lead to some major troubles when only updating after a few weeks.</p>
<p>But it became a time consuming task to keep them all in line. Since <a href="https://www.ansible.com/">ansible</a> is used at the project I'm currently working at it seemed a good idea to write a playbook to update all those devices with only one command. And without having to configure some additional software on all the devices but based on good old SSH.</p>
<p>Ansible already has a default <a href="https://docs.ansible.com/ansible/latest/modules/pacman_module.html">pacman</a> module which can be used for the official repositories. But since a lot of packages I installed are coming from the <a href="https://aur.archlinux.org">AUR</a> I first went with a command execution for <a href="https://github.com/polygamma/aurman">aurman</a>. After some research I found out about <a href="https://github.com/kewlfft/ansible-aur">ansible-aur</a> a bit later so I installed the module and rewrote my playbook so it used the aurman helper.</p>
<p>But only after a few weeks I found out that the developer wasn't really born with an open-source mind as can be seen by his commits <a href="https://github.com/polygamma/aurman/commit/dcb50aa1bf5296dfadbffbe867d3e7e807442397">dcb50aa</a> &amp; <a href="https://github.com/polygamma/aurman/commit/c409feef4c93137c2f0917d8ecdede2d51e06ea9">c409fee</a> so I went for the <a href="https://github.com/Jguer/yay">yay</a> implementation instead.</p>
<p>In the initial phase I used to push my passwords as hashes into the playbook. But when I was about to push the playbook in <a href="https://github.com/visibilityspots/ansible-playbook-archlinux-update">github</a> I figured it wouldn't be a good idea to share that with the public. So I stumbled on <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_vault.html">ansible-vault</a>.</p>
<p>That way I could refer to passwords in an encrypted file in the playbook so I could safely push the playbook to the public. In combination with the parameter <a href="https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html#cmdoption-ansible-playbook-vault-password-file">--vault-password-file</a> I can now run the playbook without interaction for passwords.</p>
<p>And it works great, keeping them all up to date and having a clear output about which packages are updated on which machine. Yet another step closer to that ultimate dream of drinking cocktails on the beach while everything is running automatically in the back!</p>
</section>
<hr/>
<aside class="post-meta">
<p>Category: <a href="https://visibilityspots.github.io/blog/category/linux.html">linux</a></p>
<p>Tags: <a href="https://visibilityspots.github.io/blog/tag/ansible.html">ansible</a>, <a href="https://visibilityspots.github.io/blog/tag/playbook.html">playbook</a>, <a href="https://visibilityspots.github.io/blog/tag/ansible-playbook.html">ansible-playbook</a>, <a href="https://visibilityspots.github.io/blog/tag/archlinux.html">archlinux</a>, <a href="https://visibilityspots.github.io/blog/tag/aur.html">aur</a>, <a href="https://visibilityspots.github.io/blog/tag/aurman.html">aurman</a>, <a href="https://visibilityspots.github.io/blog/tag/update.html">update</a>, <a href="https://visibilityspots.github.io/blog/tag/upgrade.html">upgrade</a>, <a href="https://visibilityspots.github.io/blog/tag/ansible-aur.html">ansible-aur</a>, <a href="https://visibilityspots.github.io/blog/tag/pacman.html">pacman</a>, </p>
</aside>
<hr/>
<div class="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'visibilityspots';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</article>
</li>
</ol>
</div>
</div>

<script src="https://visibilityspots.github.io/blog/theme/js/main.js"></script>
</body>
</html>

0 comments on commit 6853093

Please sign in to comment.