<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ansible on ads' corner</title><link>https://andreas.scherbaum.la/tags/ansible/</link><description>Recent content in Ansible on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 19 Jan 2026 00:00:00 +0200</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/ansible/index.xml" rel="self" type="application/rss+xml"/><item><title>Disable AI features in Firefox</title><link>https://andreas.scherbaum.la/post/2026-01-19_disable-ai-features-in-firefox/</link><pubDate>Mon, 19 Jan 2026 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2026-01-19_disable-ai-features-in-firefox/</guid><description>&lt;p&gt;&lt;em&gt;Mozilla&lt;/em&gt; recently &lt;a href="https://blog.mozilla.org/en/firefox/ai-window/"&gt;announced&lt;/a&gt; that &lt;em&gt;Firefox&lt;/em&gt; will follow &amp;ldquo;the trend&amp;rdquo; and introduce AI features in the browser. What followed was an outcry on the internet, and a demand to disable the features by default, or make it an optional package.&lt;/p&gt;&#10;&lt;p&gt;While the discussion is going on, it is possible to disable the AI features system-wide. Our laptops are running on &lt;em&gt;Linux&lt;/em&gt; (more exactly, &lt;em&gt;Manjaro Linux&lt;/em&gt;), and I&amp;rsquo;m deploying and configuring the systems with &lt;em&gt;Ansible&lt;/em&gt;. Therefore I updated the &lt;code&gt;firefox&lt;/code&gt; role and added two necessary files to disable the features upon next restart of the browser.&lt;/p&gt;</description></item><item><title>certbot on Debian Bookworm fails with: The peer didn't know the key we used</title><link>https://andreas.scherbaum.la/post/2025-06-09_certbot-on-debian-bookworm-fails-with-the-peer-didnt-know-the-key-we-used/</link><pubDate>Mon, 09 Jun 2025 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2025-06-09_certbot-on-debian-bookworm-fails-with-the-peer-didnt-know-the-key-we-used/</guid><description>&lt;p&gt;Was setting up a new &lt;em&gt;Debian Bookworm&lt;/em&gt; system in my home environment. So far I was not using certificates at home, and wanted to change this along the way, using &lt;a href="https://en.wikipedia.org/wiki/Let%27s_Encrypt"&gt;Let&amp;rsquo;s Encrypt&lt;/a&gt;. Since the IP-addresses here are &lt;a href="https://en.wikipedia.org/wiki/Private_network"&gt;RFC1918&lt;/a&gt;, I can&amp;rsquo;t use the &lt;a href="https://letsencrypt.org/docs/challenge-types/"&gt;http01 challenge&lt;/a&gt;, and have to resort to dns01 challenges. On &lt;a href="https://packages.debian.org/bookworm/"&gt;Debian Bookworm&lt;/a&gt;, using &lt;a href="https://certbot.eff.org/"&gt;certbot&lt;/a&gt;, this fails reproducible.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-plaintext" data-lang="plaintext"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Encountered error when making query: The peer didn&amp;#39;t know the key we used&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Note: Domain names in this blog posting are protected, I&amp;rsquo;m not really using the &lt;code&gt;home&lt;/code&gt; zone but a valid domain name.&lt;/p&gt;</description></item><item><title>warning: btree:/var/lib/postfix/smtp_scache is unavailable. unsupported dictionary type: btree</title><link>https://andreas.scherbaum.la/post/2024-08-07_warning-btree-var-lib-postfix-smtp_scache-is-unavailable-unsupported-dictionary-type-btree/</link><pubDate>Wed, 07 Aug 2024 00:00:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-08-07_warning-btree-var-lib-postfix-smtp_scache-is-unavailable-unsupported-dictionary-type-btree/</guid><description>&lt;p&gt;Upgraded a server, and moved it to &lt;em&gt;Arch Linux&lt;/em&gt;. And along the way the &lt;em&gt;Postfix&lt;/em&gt; version was also upgraded. Suddenly there is a warning in the logfile: &lt;code&gt;warning: btree:/var/lib/postfix/smtp_scache is unavailable. unsupported dictionary type: btree&lt;/code&gt;. Turns out that is easy to fix.&lt;/p&gt;</description></item><item><title>Ansible: debug: invalid or malformed argument: 'your text here'</title><link>https://andreas.scherbaum.la/post/2024-08-02_ansible-debug-invalid-or-malformed-argument-your-text-here/</link><pubDate>Fri, 02 Aug 2024 03:33:05 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-08-02_ansible-debug-invalid-or-malformed-argument-your-text-here/</guid><description>&lt;p&gt;If the &lt;a href="https://docs.ansible.com/ansible/latest/collections/ansible/builtin/debug_module.html"&gt;debug&lt;/a&gt; module in &lt;em&gt;Ansible&lt;/em&gt; raises this error:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&#10;&lt;/span&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;2&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;TASK [docker-compose : debug] ********************&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;fatal: [192.168.0.4]: FAILED! =&amp;gt; {&amp;#34;msg&amp;#34;: &amp;#34;invalid or malformed argument: &amp;#39;your text here&amp;#39;&amp;#34;}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Maybe, just maybe, you forgot to add the &lt;code&gt;msg=&lt;/code&gt; part.&lt;/p&gt;&#10;&lt;p&gt;Not working:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;- &lt;span style="color:#0550ae"&gt;debug&lt;/span&gt;&lt;span style="color:#1f2328"&gt;:&lt;/span&gt;&lt;span style="color:#fff"&gt; &lt;/span&gt;&lt;span style="color:#0a3069"&gt;&amp;#34;{{ my_variable }}&amp;#34;&lt;/span&gt;&lt;span style="color:#fff"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Working:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&#10;&lt;table style="border-spacing:0;padding:0;margin:0;border:0;"&gt;&lt;tr&gt;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%"&gt;&#10;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;- &lt;span style="color:#0550ae"&gt;debug&lt;/span&gt;&lt;span style="color:#1f2328"&gt;:&lt;/span&gt;&lt;span style="color:#fff"&gt; &lt;/span&gt;msg=&amp;#34;{{ my_variable }}&amp;#34;&lt;span style="color:#fff"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;The error is in the detail. That&amp;rsquo;s all for today.&lt;/p&gt;</description></item><item><title>Ansible Handler: respond to multiple different Notifications simultaneously</title><link>https://andreas.scherbaum.la/post/2024-07-29_ansible-handler-respond-to-multiple-different-notifications-simultaneously/</link><pubDate>Mon, 29 Jul 2024 00:41:11 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-07-29_ansible-handler-respond-to-multiple-different-notifications-simultaneously/</guid><description>&lt;p&gt;&lt;em&gt;Ansible&lt;/em&gt; has a concept of &amp;ldquo;handlers&amp;rdquo;, which run at the end of a Playbook, when something changed. In certain situations it might be desired or necessary to have a handler listen to more than one signal name. In my example: I&amp;rsquo;m updating the &lt;em&gt;Samba&lt;/em&gt; configuration, and before restarting &lt;code&gt;smbd&lt;/code&gt; or &lt;code&gt;nmbd&lt;/code&gt; I want to check the configuration. This &lt;em&gt;configuration check&lt;/em&gt; handler must listen to both restart signals.&lt;/p&gt;</description></item><item><title>Install Debian Bookworm on a Software RAID and EFI</title><link>https://andreas.scherbaum.la/post/2024-07-22_install-debian-bookworm-on-a-software-raid-and-efi/</link><pubDate>Fri, 19 Jul 2024 22:11:01 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-07-22_install-debian-bookworm-on-a-software-raid-and-efi/</guid><description>&lt;p&gt;Moving my systems away from &lt;em&gt;Ubuntu&lt;/em&gt;, I also have to reinstall a server at home. This system has two equal disks for a &lt;em&gt;RAID&lt;/em&gt; system, and my plan is to install &lt;em&gt;Debian&lt;/em&gt; on it. Turns out, setting up a Software &lt;em&gt;RAID&lt;/em&gt; on &lt;em&gt;Debian&lt;/em&gt; and booting from &lt;em&gt;EFI&lt;/em&gt; is not a straightforward approach. This blog posting describes the steps.&lt;/p&gt;</description></item><item><title>Install Microsoft True Type Core Fonts on Arch Linux and Manjaro Linux</title><link>https://andreas.scherbaum.la/post/2024-07-11_install-microsoft-fonts-on-arch-linux-and-manjaro-linux/</link><pubDate>Thu, 11 Jul 2024 11:07:46 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-07-11_install-microsoft-fonts-on-arch-linux-and-manjaro-linux/</guid><description>&lt;p&gt;Switching laptops from &lt;em&gt;Ubuntu&lt;/em&gt; to &lt;em&gt;Manjaro Linux&lt;/em&gt;. One of the packages which I want to install is the &lt;em&gt;Microsoft True Type Core Fonts&lt;/em&gt;. That works different in both distributions.&lt;/p&gt;</description></item><item><title>Chemnitzer Linux-Tage 2024 - Rückblick</title><link>https://andreas.scherbaum.la/post/2024-03-20_chemnitzer-linux-tage-2024-rueckblick/</link><pubDate>Wed, 20 Mar 2024 23:03:34 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2024-03-20_chemnitzer-linux-tage-2024-rueckblick/</guid><description>&lt;p&gt;Die &lt;a href="https://chemnitzer.linux-tage.de/2024/de/"&gt;Chemnitzer Linux-Tage 2024&lt;/a&gt; sind vorbei, Zeit für einen Rückblick. Was habe ich gesehen, gelernt und erlebt.&lt;/p&gt;</description></item><item><title>Install Firefox PPA version over Snap version</title><link>https://andreas.scherbaum.la/post/2023-01-07_install-firefox-ppa-version-over-snap-version/</link><pubDate>Sat, 07 Jan 2023 01:08:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2023-01-07_install-firefox-ppa-version-over-snap-version/</guid><description>&lt;p&gt;It was time to update my laptop, and I already knew that the update will bring &lt;em&gt;Snap&lt;/em&gt;, and installs the &lt;em&gt;Snap&lt;/em&gt; &lt;em&gt;Firefox&lt;/em&gt; version. Along with &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=snap"&gt;many known problems&lt;/a&gt;. Previously the laptop was on 20.04 LTS, but this version is about to loose support.&lt;/p&gt;&#10;&lt;p&gt;I ran through the upgrade, and then added an &lt;em&gt;Ansible&lt;/em&gt; Playbook to handle the &lt;em&gt;Firefox&lt;/em&gt; installation, remove the Snap version and install the PPA version. Most of my laptop configuration is handled using &lt;em&gt;Ansible&lt;/em&gt; Playbooks.&lt;/p&gt;</description></item><item><title>Using fail2ban to block unfriendly web requests</title><link>https://andreas.scherbaum.la/post/2022-12-09_using-fail2ban-to-block-unfriendly-web-requests/</link><pubDate>Fri, 09 Dec 2022 17:21:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2022-12-09_using-fail2ban-to-block-unfriendly-web-requests/</guid><description>&lt;p&gt;Every time I peek into the webserver logfiles, I find quite a few 404 requests trying to figure out if certain exploits exist on this server. Now I get that these are automated attempts, and the number of requests coming from one IP show that they try several different exploits and path names. Nevertheless I thought that I don’t need this in my log, and on my webserver. &lt;a href="https://www.fail2ban.org/"&gt;fail2ban&lt;/a&gt; for the rescue.&lt;/p&gt;</description></item><item><title>PGSQL Phriday #001: Two truths and a lie</title><link>https://andreas.scherbaum.la/post/2022-10-07_pgsql-phriday-001-two-truths-and-a-lie/</link><pubDate>Fri, 07 Oct 2022 18:42:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2022-10-07_pgsql-phriday-001-two-truths-and-a-lie/</guid><description>&lt;p&gt;Uh, what is this &lt;a href="https://andreas.scherbaum.la/tags/pgsqlphriday"&gt;#PGSQLPhriday&lt;/a&gt; thing about? Everyone is writing blog posts about this today &amp;hellip; For details, please read the &lt;a href="https://www.softwareandbooz.com/pgsql-phriday-001-invite/"&gt;introduction from Ryan Booz&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;This month&amp;rsquo;s topic: pick your three favorite or most important best pratices for #PostgreSQL. Tell them in a form that two are true, one is a lie. See if you can spot which one is true and which one is false. The resolution is at the end of this blog posting.&lt;/p&gt;</description></item><item><title>Run Ansible tasks as different remote user</title><link>https://andreas.scherbaum.la/post/2022-08-12_run-ansible-tasks-as-different-remote-user/</link><pubDate>Fri, 12 Aug 2022 00:40:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2022-08-12_run-ansible-tasks-as-different-remote-user/</guid><description>&lt;p&gt;Had a somewhat curious situation: need to run a task in &lt;em&gt;Ansible&lt;/em&gt; in different user accounts, but I don&amp;rsquo;t have &lt;code&gt;sudo&lt;/code&gt; or &lt;code&gt;su&lt;/code&gt; access, only ssh access for every account. Took me a moment to figure out how to do that.&lt;/p&gt;</description></item><item><title>Ansible: Lookup group name by gid</title><link>https://andreas.scherbaum.la/post/2022-06-12_ansible-lookup-group-name-by-gid/</link><pubDate>Sun, 12 Jun 2022 17:16:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2022-06-12_ansible-lookup-group-name-by-gid/</guid><description>&lt;p&gt;For one of my &lt;em&gt;Ansible&lt;/em&gt; Playbooks I need the group name associated with a specific group id. Turns out there is not much documentation online how to do this, and I had to test it out.&lt;/p&gt;</description></item><item><title>Read a JSON text into a variable in Ansible without parsing it</title><link>https://andreas.scherbaum.la/post/2022-03-20_read-a-json-text-into-a-variable-in-ansible-without-parsing-it/</link><pubDate>Sun, 20 Mar 2022 00:08:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2022-03-20_read-a-json-text-into-a-variable-in-ansible-without-parsing-it/</guid><description>&lt;p&gt;For one project I need to insert the content of a local file into another file on the remote system, and the first file happens to be &lt;em&gt;JSON&lt;/em&gt;. The &lt;em&gt;JSON&lt;/em&gt; file is in compact format (&lt;code&gt;jq --compact-output&lt;/code&gt;) and is supposed to stay this way. When &lt;em&gt;Ansible&lt;/em&gt; reads the content of the file, it determines that the content is &lt;em&gt;JSON&lt;/em&gt;, and parses the content into the variable - and along the way is uncompressing the format. Not what I want.&lt;/p&gt;&#10;&lt;p&gt;To keep the file content as string, it is necessary to tell &lt;em&gt;Ansible&lt;/em&gt; to handle this as string.&lt;/p&gt;</description></item><item><title>Ansible and string comparisation for IDs</title><link>https://andreas.scherbaum.la/post/2021-05-02_ansible-and-string-comparisation-for-ids/</link><pubDate>Sun, 02 May 2021 21:42:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2021-05-02_ansible-and-string-comparisation-for-ids/</guid><description>&lt;p&gt;Was running in a stupid problem where &lt;em&gt;Ansible&lt;/em&gt; (version 2.9.x) throws an error when a variable is defined. The Play:&lt;/p&gt;</description></item><item><title>Ansible, "copy" module and "become"</title><link>https://andreas.scherbaum.la/post/2021-04-15_ansible-copy-module-and-become/</link><pubDate>Thu, 15 Apr 2021 22:26:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2021-04-15_ansible-copy-module-and-become/</guid><description>&lt;p&gt;For testing I did spin up a couple of new virtual (&lt;em&gt;Ubuntu&lt;/em&gt; 20.04 LTS) instances, installed &lt;em&gt;PostgreSQL&lt;/em&gt;, and wanted to &lt;a href="https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html"&gt;copy&lt;/a&gt; over a &lt;code&gt;.sql&lt;/code&gt; file to install in the database:&lt;/p&gt;</description></item><item><title>Make Ansible "postgresql_ping" fail if the database does not exist</title><link>https://andreas.scherbaum.la/post/2021-03-31_make-ansible-postgresql_ping-fail-if-the-database-does-not-exist/</link><pubDate>Wed, 31 Mar 2021 23:44:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2021-03-31_make-ansible-postgresql_ping-fail-if-the-database-does-not-exist/</guid><description>&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Ansible_(software)"&gt;Ansible&lt;/a&gt; has a very useful module &amp;ldquo;&lt;a href="https://docs.ansible.com/ansible/2.8/modules/postgresql_ping_module.html"&gt;postgresql_ping&lt;/a&gt;&amp;rdquo; which checks connectivity to the database server. I&amp;rsquo;m using it in quite a few Playbooks as first step just to ensure that the database server is present - this fails early if there is a problem which otherwise just prevents the rest of the Playbook to work properly.&lt;/p&gt;</description></item><item><title>Blog website crawlers and bots in Apache2</title><link>https://andreas.scherbaum.la/post/2021-03-21_blog-website-crawlers-and-bots-in-apache2/</link><pubDate>Sun, 21 Mar 2021 19:08:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-03-21_blog-website-crawlers-and-bots-in-apache2/</guid><description>&lt;p&gt;Found a couple more bots crawling my website, and from the look at online resources it seems I catched a few of the bad guys. Crawlers which ignore the &lt;a href="https://en.wikipedia.org/wiki/Robots_exclusion_standard"&gt;robots.txt&lt;/a&gt; standard, and just crawl a website for content.&lt;/p&gt;&#10;&lt;p&gt;Decided to do something against it, and added a filter in &lt;a href="https://httpd.apache.org/"&gt;Apache2&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Online indicator for remote controllable power plugs in openHAB</title><link>https://andreas.scherbaum.la/post/2021-01-09_online-indicator-for-remote-controllable-power-plugs-in-openhab/</link><pubDate>Sat, 09 Jan 2021 23:46:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-01-09_online-indicator-for-remote-controllable-power-plugs-in-openhab/</guid><description>&lt;p&gt;Recently I installed a number of new power sockets (like &lt;a href="https://www.amazon.de/-/en/switchable-Control-Directly-compatible-Compatible/dp/B074PZLX2P"&gt;this one&lt;/a&gt;). The &lt;a href="https://phoscon.de/en/raspbee2"&gt;Hue bridge&lt;/a&gt; can not only add each switch to a light group, but also reports each plug as a &lt;a href="https://www.openhab.org/docs/configuration/things.html"&gt;Thing&lt;/a&gt; in &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt;. There I thought it will be a nice touch if &lt;em&gt;openHAB&lt;/em&gt; actually reports when it sees a device plugged in. The power socket has a LED which turns on when the plug is on. The &lt;em&gt;Hue&lt;/em&gt; bridge reports &lt;code&gt;OFFLINE&lt;/code&gt; and &lt;code&gt;ONLINE&lt;/code&gt;. That&amp;rsquo;s useful.&lt;/p&gt;&#10;&lt;p&gt;The plan is to turn the LED light - and the power plug - on and off for a few second.&lt;/p&gt;</description></item><item><title>Restic backup</title><link>https://andreas.scherbaum.la/post/2020-12-27_restic-backup/</link><pubDate>Sun, 27 Dec 2020 23:47:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-12-27_restic-backup/</guid><description>&lt;p&gt;Was asked quite a few times how I do my backups with &lt;em&gt;Restic&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;For more than 10 years I was using &amp;ldquo;&lt;a href="https://github.com/andreasscherbaum/duplicity-backup"&gt;Duplicity&lt;/a&gt;&amp;rdquo; for backups, but in 2019 I changed to &lt;a href="https://restic.net/"&gt;Restic&lt;/a&gt;. The main reason for the change was that &lt;em&gt;Duplicity&lt;/em&gt; still can&amp;rsquo;t handle &amp;ldquo;Big Data&amp;rdquo;, as in: larger directories. In 2009 someone opened an &lt;a href="https://bugs.launchpad.net/duplicity/+bug/385495"&gt;issue&lt;/a&gt; on the &lt;em&gt;Duplicity&lt;/em&gt; bugtracker, and this problem still exists as of today. For about two years I was shifting around the problem, excluding files, trying to make the sigfile smaller. But at some point I decided that it is enough and I need to change the tool.&lt;/p&gt;</description></item><item><title>Add a Google Calendar to openHAB</title><link>https://andreas.scherbaum.la/post/2020-10-27_add-a-google-calendar-to-openhab/</link><pubDate>Tue, 27 Oct 2020 22:14:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-27_add-a-google-calendar-to-openhab/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; can integrate &lt;em&gt;Google&lt;/em&gt; Calendars. The functionality is kind of limited, it can only see the current and the next calendar event, but in my case that is enough. More about the use case in another blog post.&lt;/p&gt;</description></item><item><title>openHAB: faster loading of rules files</title><link>https://andreas.scherbaum.la/post/2020-10-24_openhab-faster-loading-of-rules-files/</link><pubDate>Sat, 24 Oct 2020 19:36:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-24_openhab-faster-loading-of-rules-files/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; rules files are lazy loaded. When a rule is used the first time, the entire rule file is loaded and compiled, which apparently is single-threaded and takes a couple seconds. Even on a reasonable powerful Rasperry Pi 4. This happens both after restarting &lt;em&gt;openHAB&lt;/em&gt; and after changing the rules file. It also means that whatever the rule in question is supposed to do has to wait a couple seconds when requested for the first time. Imagine you have a light switch, enter a room, press the switch, and it takes 5-10 seconds until the light comes on.&lt;/p&gt;&#10;&lt;p&gt;To work around this problem, I add a piece of code in all rules files which triggers an immediate action right after loading the file. This way the rules file is already pre-loaded (which again takes a couple seconds, but likely at a time when the rule is not needed right now).&lt;/p&gt;</description></item><item><title>Audio reminders in openHAB</title><link>https://andreas.scherbaum.la/post/2020-10-15_audio-reminders-in-openhab/</link><pubDate>Thu, 15 Oct 2020 21:20:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-15_audio-reminders-in-openhab/</guid><description>&lt;p&gt;A while ago someone mentioned &amp;ldquo;reminders&amp;rdquo; used in their home audio system, and I took that idea and implemented something similar in &lt;a href="https://andreas.scherbaum.la/tags/openhab"&gt;openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The basic idea is that I can send scheduled notifications to any audio sink &lt;em&gt;openHAB&lt;/em&gt; is using, possibly more than one audio sink for one message. Also I want to differentiate between a simple audio sound, and text output.&lt;/p&gt;</description></item><item><title>openHAB, Telegram Bot and quoting URLs</title><link>https://andreas.scherbaum.la/post/2020-08-19_openhab-telegram-bot-and-quoting-urls/</link><pubDate>Wed, 19 Aug 2020 13:49:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-19_openhab-telegram-bot-and-quoting-urls/</guid><description>&lt;p&gt;A while ago I &lt;a href="https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/"&gt;integrated DWD warnings&lt;/a&gt; (&lt;em&gt;Deutscher Wetterdienst&lt;/em&gt;) into our home automation system, and receive severe weather notifications ever since then. That works quite good, but it was missing a weblink with more details - or if you want to forward the warning to someone it would be useful to have a link to the warning as well. The &lt;em&gt;DWD&lt;/em&gt; binding does not provide that piece of information, but it is easy enough to add - or so I thought.&lt;/p&gt;</description></item><item><title>Text-to-Speech in openHAB</title><link>https://andreas.scherbaum.la/post/2020-08-16_text-to-speech-in-openhab/</link><pubDate>Sun, 16 Aug 2020 17:28:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-16_text-to-speech-in-openhab/</guid><description>&lt;p&gt;In my ongoing endeavor to improve our home, a while ago I added a notification when the &lt;a href="https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/"&gt;washing machine and the dryer are finished&lt;/a&gt;. The notification is send to a &lt;a href="https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/"&gt;Telegram channel&lt;/a&gt;. Over the summer vacation I added a number new &lt;a href="https://andreas.scherbaum.la/tags/chromecast"&gt;ChromeCast&lt;/a&gt; Audio devices (Google no longer offers the Audio CC, if you need one get one now). One is placed in the kitchen. Not only can I listen to music while eating breakfast, I can also output notifications, by using the CC as an &lt;a href="https://www.openhab.org/docs/configuration/multimedia.html"&gt;audio sink in openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;To make that useful, I decided to use a Text-to-Speech system. &lt;em&gt;openHAB&lt;/em&gt; offers a couple different TTS systems, however most of them need a cloud integration, and therefore a working Internet connection. The &amp;ldquo;&lt;a href="https://www.openhab.org/addons/voice/picotts/"&gt;Pico TTS&lt;/a&gt;&amp;rdquo; works standalone, and was my favorite choice for this implementation.&lt;/p&gt;</description></item><item><title>openHAB and Tankerkönig gas prices + Telegram integration - Second iteration</title><link>https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/</link><pubDate>Sat, 15 Aug 2020 18:25:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/</guid><description>&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/"&gt;previous blog&lt;/a&gt; post about &amp;ldquo;&lt;a href="https://www.tankerkoenig.de/"&gt;Tankerkönig&lt;/a&gt;&amp;rdquo; I explained the details of how to integrate this binding into &lt;em&gt;openHAB&lt;/em&gt; and provide a &lt;em&gt;Telegram&lt;/em&gt; interface.&lt;/p&gt;&#10;&lt;p&gt;Someone on the &lt;em&gt;openHAB&lt;/em&gt; community forum &lt;a href="https://community.openhab.org/t/openhab-and-tankerkonig-gas-prices-telegram-integration/101410/2"&gt;pointed out&lt;/a&gt; that &lt;em&gt;Telegram&lt;/em&gt; bots allow queries, where one can present the user with options, and the user only has to click on one of the options. That makes it easier to use, and less typing is required as well. I went ahead and implemented that.&lt;/p&gt;&#10;&lt;p&gt;Most of the &lt;a href="https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/"&gt;implementation&lt;/a&gt; does not change, especially all the Things and Items are the same. The Rules change however.&lt;/p&gt;</description></item><item><title>Use namespace as global variable in Ansible Jinja templates</title><link>https://andreas.scherbaum.la/post/2020-07-09_use-namespace-as-global-variable-in-ansible-jinja-templates/</link><pubDate>Thu, 09 Jul 2020 21:46:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-09_use-namespace-as-global-variable-in-ansible-jinja-templates/</guid><description>&lt;p&gt;A simple task, or so I thought: in a &lt;em&gt;Jinja&lt;/em&gt; template keep track of the number of items in a loop. And then use that count afterwards.&lt;/p&gt;&#10;&lt;p&gt;Disclaimer: the number of items is not equal the number of times the loop runs, so I can&amp;rsquo;t use the loop variables.&lt;/p&gt;&#10;&lt;p&gt;Turns out that &lt;em&gt;Jinja&lt;/em&gt; has other opinions, and variables inside a loop are all local. When a variable is changed inside the loop, the scope of the variable stays local, and once the loop ends the original value of the variable is restored. That&amp;rsquo;s even true for variables which are created outside the loop.&lt;/p&gt;</description></item><item><title>Improve openHAB Rules response time</title><link>https://andreas.scherbaum.la/post/2020-07-06_improve-openhab-rules-response-time/</link><pubDate>Mon, 06 Jul 2020 11:48:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-06_improve-openhab-rules-response-time/</guid><description>&lt;p&gt;By default, &lt;em&gt;openHAB&lt;/em&gt; only starts &lt;code&gt;5&lt;/code&gt; threads to deal with execution of &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html"&gt;Rules&lt;/a&gt;. That&amp;rsquo;s not a lot, and if all threads are busy, rules have to wait until a slot is free. This results in slow &lt;code&gt;Rule&lt;/code&gt; response time.&lt;/p&gt;&#10;&lt;p&gt;This can be improved.&lt;/p&gt;</description></item><item><title>openHAB: Turn display on and off for a Video ChromeCast</title><link>https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/</link><pubDate>Sun, 05 Jul 2020 00:20:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/</guid><description>&lt;p&gt;After figuring out if a &lt;a href="https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/"&gt;ChromeCast is currently used&lt;/a&gt;, it was time to fix a long-standing problem. At home we don&amp;rsquo;t have TVs, just &amp;ldquo;dumb&amp;rdquo; displays, and stream content using &lt;em&gt;ChromeCasts&lt;/em&gt;. However a video &lt;em&gt;ChromeCast&lt;/em&gt; never really turns off, but keeps the display running, using a &lt;code&gt;Backdrop&lt;/code&gt; app. This app keeps showing pictures on the display when the &lt;em&gt;ChromeCast&lt;/em&gt; is not used otherwise, effectively preventing any powersafe mode.&lt;/p&gt;&#10;&lt;p&gt;That&amp;rsquo;s both annoying (who wants to have pictures shown in the living room or working room all night), and consumes energy. It&amp;rsquo;s also &lt;a href="https://support.google.com/chromecast/thread/1738612?hl=en"&gt;intentional by Google&lt;/a&gt;. So far we had to turn the display on and off manually, which is inconvenient.&lt;/p&gt;</description></item><item><title>openHAB: detect if a ChromeCast is currently used or idle</title><link>https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/</link><pubDate>Sat, 04 Jul 2020 20:38:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/</guid><description>&lt;p&gt;We have a couple of Audio and Video &lt;em&gt;ChromeCasts&lt;/em&gt; in use. For an upcoming project I need to figure out if any of them is currently used. That is different for the Audio and the Video devices: the Audio just goes &lt;code&gt;idle=ON&lt;/code&gt;, the Video devices however load the &lt;code&gt;Backdrop&lt;/code&gt; app and show pictures when idling. Google for &lt;a href="https://support.google.com/chromecast/thread/1738612?hl=en"&gt;whatever reason&lt;/a&gt; does not want the attached monitor to go in powersafe mode. So much for saving energy &amp;hellip;&lt;/p&gt;</description></item><item><title>Deutscher Wetterdienst notifications in openHAB and Telegram</title><link>https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/</link><pubDate>Sun, 28 Jun 2020 17:32:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/</guid><description>&lt;p&gt;The &amp;ldquo;&lt;a href="https://www.dwd.de/"&gt;Deutscher Wetterdienst&lt;/a&gt;&amp;rdquo; &lt;em&gt;DWD&lt;/em&gt; (&lt;em&gt;German Weather Service&lt;/em&gt;) provices a service which sends out alarms for upcoming events, like heavy rain, storm, blizzard, strong winds ect. This service is only available for &lt;em&gt;Germany&lt;/em&gt;. And it has a &lt;a href="https://www.openhab.org/addons/bindings/dwdunwetter/"&gt;binding for openHAB&lt;/a&gt;. Time to integrate this, activate a number of regions I&amp;rsquo;m interested in, and send notifications to our mobile phones.&lt;/p&gt;</description></item><item><title>openHAB and Tankerkönig gas prices + Telegram integration</title><link>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</link><pubDate>Sat, 27 Jun 2020 01:03:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</guid><description>&lt;p&gt;In &lt;em&gt;Germany&lt;/em&gt;, every gas station must report gas prices online, to the &lt;a href="https://www.bundeskartellamt.de/DE/Wirtschaftsbereiche/Mineral%C3%B6l/MTS-Kraftstoffe/mtskraftstoffe_node.html"&gt;Markttransparenzstelle für Kraftstoffe&lt;/a&gt;. Businesses and users can then fetch this data and provide services. One of these companies is &lt;a href="https://www.tankerkoenig.de/"&gt;Tankerkönig&lt;/a&gt;, and there&amp;rsquo;s also a &lt;a href="https://www.openhab.org/addons/bindings/tankerkoenig/"&gt;Binding for openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;If you are interested in gas prices for certain gas stations, you need to &lt;a href="https://creativecommons.tankerkoenig.de/"&gt;sign up for a (free) API key&lt;/a&gt;, and figure out the IDs of the gas stations. For that &lt;a href="https://creativecommons.tankerkoenig.de/TankstellenFinder/index.html"&gt;go to this website&lt;/a&gt;, Position the blue marker on the location you are interested in, and then click on all the gas stations you want to include. Finally click on &lt;code&gt;Tankstellen übernehmen&lt;/code&gt; - this will open a &lt;em&gt;JSON&lt;/em&gt; with the data, from there extract the &lt;code&gt;id&lt;/code&gt; (and possibly the other data as well).&lt;/p&gt;</description></item><item><title>Monitor additional details in Telegraf with the "Exec" input filter</title><link>https://andreas.scherbaum.la/post/2020-06-25_monitor-additional-details-in-telegraf-with-the-exec-input-filter/</link><pubDate>Thu, 25 Jun 2020 01:14:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-25_monitor-additional-details-in-telegraf-with-the-exec-input-filter/</guid><description>&lt;p&gt;After &lt;a href="https://andreas.scherbaum.la/post/2020-06-24_install-telegraf-using-ansible/"&gt;installing Telegraf&lt;/a&gt; and hooking up everything into &lt;a href="https://www.influxdata.com/products/influxdb-overview/"&gt;InfluxDB&lt;/a&gt;, I was missing the status of my backups. Every system here creates encrypted backups every night, and stores them on a central NAS, and off-site. But I want to know statistics about the backups, and see if something is not working.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m using &lt;a href="https://restic.net/"&gt;Restic&lt;/a&gt; for the backups (will blog about this another time). However &lt;em&gt;Telegraf&lt;/em&gt; does not support &lt;em&gt;Restic&lt;/em&gt; directly, I need a few workarounds. This blog post however is not directly about monitoring the backups, but about how to write your own plugin for &lt;em&gt;Telegraf&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Install Telegraf using Ansible</title><link>https://andreas.scherbaum.la/post/2020-06-24_install-telegraf-using-ansible/</link><pubDate>Wed, 24 Jun 2020 18:56:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-24_install-telegraf-using-ansible/</guid><description>&lt;p&gt;I have an &lt;a href="https://www.influxdata.com/products/influxdb-overview/"&gt;InfluxDB&lt;/a&gt; up and &lt;a href="https://andreas.scherbaum.la/post/2020-06-21_move-influxdb-data-directory-to-a-sdcard/"&gt;running&lt;/a&gt; in my network, and decided to monitor all (well, all possible - the &lt;em&gt;QNAP&lt;/em&gt; seems to be a problem) devices. That&amp;rsquo;s quite easy to do by installing &lt;a href="https://www.influxdata.com/time-series-platform/telegraf/"&gt;Telegraf&lt;/a&gt; as a server agent, and add some configuration. Everything is deployed using &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt;, so I can re-use the same &lt;a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks.html"&gt;Playbook&lt;/a&gt; for many devices.&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s assume I have a laptop which I want to monitor. The hostname is &lt;code&gt;sunlight&lt;/code&gt; (it&amp;rsquo;s not, I&amp;rsquo;m just using this as an example).&lt;/p&gt;</description></item><item><title>Add InfluxDB settings in Telegraf using Ansible: [WARNING]: The value [...] (type list) in a string field was converted to "[...]" (type string)</title><link>https://andreas.scherbaum.la/post/2020-06-23_add-influxdb-settings-in-telegraf-using-ansible-warning-the-value-...-type-list-in-a-string-field-was-converted-to-...-type-string/</link><pubDate>Tue, 23 Jun 2020 17:30:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-23_add-influxdb-settings-in-telegraf-using-ansible-warning-the-value-...-type-list-in-a-string-field-was-converted-to-...-type-string/</guid><description>&lt;p&gt;I&amp;rsquo;m in the process of updating my entire home setup, and integrate everything properly. Part of this process is to automate everything, and use &lt;em&gt;Ansible&lt;/em&gt; Playbooks to deploy devices and configurations.&lt;/p&gt;</description></item><item><title>openHAB and Telegram Bot</title><link>https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/</link><pubDate>Mon, 22 Jun 2020 10:54:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; 2 comes with a &lt;em&gt;Telegram&lt;/em&gt; binding which allows to run a &lt;em&gt;Telegram&lt;/em&gt; Bot. This bot can both send messages to users and groups, and can receive commands and respond to them. That&amp;rsquo;s useful: your home automation system can send all kind of details to your mobile phone.&lt;/p&gt;</description></item><item><title>Move InfluxDB data directory to a SDcard</title><link>https://andreas.scherbaum.la/post/2020-06-21_move-influxdb-data-directory-to-a-sdcard/</link><pubDate>Sun, 21 Jun 2020 21:26:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-21_move-influxdb-data-directory-to-a-sdcard/</guid><description>&lt;p&gt;For my &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; system I installed &lt;em&gt;InfluxDB&lt;/em&gt; (on a separate) &lt;em&gt;Raspberry Pi&lt;/em&gt;. The Pi has a 32 GB SDcard, but that is not enough for storing all the data, and that Pi has additional work to do as well. For that reason I also attached a &lt;em&gt;1 TB&lt;/em&gt; disk to the Pi, and mounted it on &lt;code&gt;/data&lt;/code&gt;. Now all I have to do is move the &lt;em&gt;InfluxDB&lt;/em&gt; data directory to &lt;code&gt;/data&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>openHAB and HP printer</title><link>https://andreas.scherbaum.la/post/2020-06-18_openhab-and-hp-printer/</link><pubDate>Thu, 18 Jun 2020 01:43:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-18_openhab-and-hp-printer/</guid><description>&lt;p&gt;Recent &lt;em&gt;openHAB&lt;/em&gt; versions come with a new &lt;a href="https://www.openhab.org/addons/bindings/hpprinter/"&gt;HP Printer Binding&lt;/a&gt;, which is a big improvement over the more general &lt;a href="https://www.openhab.org/addons/bindings/ipp/"&gt;IPP Binding&lt;/a&gt; for printers.&lt;/p&gt;</description></item><item><title>raspi-config automated</title><link>https://andreas.scherbaum.la/post/2020-06-17_raspi-config-automated/</link><pubDate>Wed, 17 Jun 2020 22:11:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-17_raspi-config-automated/</guid><description>&lt;p&gt;While I &lt;a href="https://andreas.scherbaum.la/post/2020-05-29_install-a-raspbee-ii-on-a-raspberry-pi/"&gt;installed the Raspberry Pi with the Raspbee board&lt;/a&gt; on it, I had to modify the settings for the serial device. That&amp;rsquo;s done using the &lt;code&gt;raspi-config&lt;/code&gt; tool on Raspbian.&lt;/p&gt;&#10;&lt;p&gt;However since I&amp;rsquo;m into automation, I don&amp;rsquo;t want to start &lt;code&gt;raspi-config&lt;/code&gt; manually, but had to figure out how to do that in an automated way.&lt;/p&gt;</description></item><item><title>New OpenWeatherMap channels missing after openHAB upgrade from 2.4 to 2.5</title><link>https://andreas.scherbaum.la/post/2020-06-07_new-openweathermap-channels-missing-after-openhab-upgrade-from-2.4-to-2.5/</link><pubDate>Sun, 07 Jun 2020 22:54:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-07_new-openweathermap-channels-missing-after-openhab-upgrade-from-2.4-to-2.5/</guid><description>&lt;p&gt;A while ago I upgraded &lt;em&gt;openHAB&lt;/em&gt; from version &lt;code&gt;2.4&lt;/code&gt; to &lt;code&gt;2.5&lt;/code&gt;. That comes with the &lt;a href="https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/"&gt;usual share of problems&lt;/a&gt;, but eventually I got it working.&lt;/p&gt;</description></item><item><title>Install a Raspbee II on a Raspberry Pi</title><link>https://andreas.scherbaum.la/post/2020-05-29_install-a-raspbee-ii-on-a-raspberry-pi/</link><pubDate>Fri, 29 May 2020 01:16:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-05-29_install-a-raspbee-ii-on-a-raspberry-pi/</guid><description>&lt;p&gt;A while ago I got a &lt;a href="https://twitter.com/sys_adm_ama/status/1261419079916761088"&gt;recommendation&lt;/a&gt; to look into a &lt;em&gt;Raspbee&lt;/em&gt; (from &lt;a href="https://www.dresden-elektronik.de/"&gt;dresden elektronik&lt;/a&gt;) as &lt;em&gt;Zigbee&lt;/em&gt; gateway. That looked like fun, therefore I ordered one of the devices. The first step is the installation of the &lt;em&gt;Pi&lt;/em&gt; itself and then the software for the &lt;em&gt;Raspbee&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Raspberry Pi watchdog for openHAB</title><link>https://andreas.scherbaum.la/post/2020-05-07_raspberry-pi-watchdog-for-openhab/</link><pubDate>Thu, 07 May 2020 02:27:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-05-07_raspberry-pi-watchdog-for-openhab/</guid><description>&lt;p&gt;The &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; display in the kitchen is still the problem child. Occasionally it just stops, other times it does not refresh the &lt;em&gt;HABpanel&lt;/em&gt;, even though it has a connection to the &lt;em&gt;openHAB&lt;/em&gt; server. Then there is the problem with the &lt;a href="https://andreas.scherbaum.la/post/2020-01-29_reboot-the-raspberry-pi-on-network-failures-brcmfmac-brcmf_cfg80211_scan-scan-error-110/"&gt;network card in the Pi&lt;/a&gt;. And - ok, that&amp;rsquo;s a server-side problem - occasionally the &lt;a href="https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/"&gt;weather stops updating&lt;/a&gt;. All in all that&amp;rsquo;s a lot of trouble for a display which is just supposed to run standalone.&lt;/p&gt;&#10;&lt;p&gt;In the latest iteration I looked into activating the integrated hardware watchdog in the &lt;em&gt;Raspberry Pi&lt;/em&gt;. Checking the temperature it never goes above ~55°C celcius, even though the display is in an almost closed frame and can&amp;rsquo;t exchange much heat with the environment. But nevertheless occasionally the &lt;em&gt;Pi&lt;/em&gt; just halts, and stops operating.&lt;/p&gt;</description></item><item><title>openhab2: check if alive</title><link>https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/</link><pubDate>Tue, 28 Apr 2020 15:42:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/</guid><description>&lt;p&gt;As mentioned in my previous &lt;a href="https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/"&gt;openHAB blog post&lt;/a&gt;: it seems to be too much to ask to have a reliable and working display in the kitchen.&lt;/p&gt;&#10;&lt;p&gt;Another problem I found is that the &lt;a href="https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/"&gt;weather data&lt;/a&gt; occasionally does not update. Everything seems to work, no errors in the log, just no updated data. Of course this results in outdated weather info in the kitchen, and the threat that &amp;ldquo;someone&amp;rdquo; will buy a regular weather station and render my 7&amp;quot; &lt;em&gt;Raspberry&lt;/em&gt; display useless.&lt;/p&gt;</description></item><item><title>Ansible, delegate_to and set_fact</title><link>https://andreas.scherbaum.la/post/2020-04-22_ansible-delegate_to-and-set_fact/</link><pubDate>Wed, 22 Apr 2020 19:47:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-22_ansible-delegate_to-and-set_fact/</guid><description>&lt;p&gt;Another &lt;em&gt;Ansible&lt;/em&gt; upgrade, another Playbook failing.&lt;/p&gt;&#10;&lt;p&gt;I have a number Playbooks which run on virtual machines. Some tasks are &amp;ldquo;outsourced&amp;rdquo; to the physical machine where the VM is running on, using &lt;code&gt;delegate_to&lt;/code&gt;. One of the tasks (which I haven&amp;rsquo;t used in a while, because I rarely touch this machine) stopped working, and instead throws a &lt;code&gt;variable undefined&lt;/code&gt; error. But from the beginning, here is the VM Playbook:&lt;/p&gt;</description></item><item><title>openHAB HABpanel configuration gets destroyed, HABpanel stays blank</title><link>https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/</link><pubDate>Wed, 08 Apr 2020 19:58:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/</guid><description>&lt;p&gt;&lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; is a stream of pure joy when it comes to debugging. Especially when all I want is a small display in the kitchen, working autonomous and without the need to restart it all the time or login to fix issues.&lt;/p&gt;</description></item><item><title>Local cachíng of Ansible Facts</title><link>https://andreas.scherbaum.la/post/2020-03-29_local-caching-of-ansible-facts/</link><pubDate>Sun, 29 Mar 2020 19:39:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-03-29_local-caching-of-ansible-facts/</guid><description>&lt;p&gt;Every time &lt;em&gt;Ansible&lt;/em&gt; runs a Playbook, the first step (by default) is gathering facts about the target system:&lt;/p&gt;</description></item><item><title>Restic upgrade on Debian Buster</title><link>https://andreas.scherbaum.la/post/2020-03-27_restic-upgrade-on-debian-buster/</link><pubDate>Fri, 27 Mar 2020 21:29:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-03-27_restic-upgrade-on-debian-buster/</guid><description>&lt;p&gt;A while ago I switched backups from &lt;a href="https://duplicity.gitlab.io//"&gt;Duplicity&lt;/a&gt; to &lt;a href="https://restic.net/"&gt;Restic&lt;/a&gt;. About time: I was using &lt;em&gt;Duplicity&lt;/em&gt; for many years (I think I started using it around 2010, long before &lt;em&gt;Restic&lt;/em&gt; became available) and it served me well. But recently I ran into more and more issues, especially with archives getting larger and larger. There is an 11 years old open bug in the Duplicity bugtracker, which describes a &lt;a href="https://bugs.launchpad.net/duplicity/+bug/385495"&gt;showstopper for backing up larger archives&lt;/a&gt;. And it doesn&amp;rsquo;t look like this will be solved anytime soon. Therefore it was time for something new.&lt;/p&gt;&#10;&lt;p&gt;Since I&amp;rsquo;m rolling out my backups with &lt;a href="https://andreas.scherbaum.la/categories/ansible"&gt;Ansible&lt;/a&gt;, it was relatively easy to create a set of scripts for &lt;em&gt;Restic&lt;/em&gt; which use almost the same infrastructure as the old Duplicity backups. That works as expected on all our laptops. But the &lt;a href="https://andreas.scherbaum.la/categories/raspberry-pi"&gt;Raspberry Pi&lt;/a&gt;, which does the fileserver backups, seem to had a problem. Backups took way longer than before, jumped from 30-60 minutes (depending on the amount of changes) to constantly around 10 hours.&lt;/p&gt;</description></item><item><title>Create and renew Let's Encrypt certificates using Ansible - and the acme_certificate module</title><link>https://andreas.scherbaum.la/post/2020-03-24_create-and-renew-lets-encrypt-certificates-using-ansible-and-the-acme_certificate-module/</link><pubDate>Tue, 24 Mar 2020 18:45:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-03-24_create-and-renew-lets-encrypt-certificates-using-ansible-and-the-acme_certificate-module/</guid><description>&lt;p&gt;About two years ago I &lt;a href="https://andreas.scherbaum.la/post/2018-05-27_create-and-renew-lets-encrypt-certificates-using-ansible/"&gt;blogged about how to create and renew Let&amp;rsquo;s Encrypt certificates using Ansible&lt;/a&gt;. Back then, the &amp;ldquo;&lt;a href="https://docs.ansible.com/ansible/latest/modules/letsencrypt_module.html"&gt;letsencrypt&lt;/a&gt;&amp;rdquo; module was State of the Art. This changed, and with all the Let&amp;rsquo;s Encrypt API changes, the &lt;em&gt;Ansible&lt;/em&gt; module changed quite a lot, and is now &amp;ldquo;&lt;a href="https://docs.ansible.com/ansible/latest/modules/acme_certificate_module.html"&gt;acme_certificate&lt;/a&gt;&amp;rdquo;. &lt;a href="https://tools.ietf.org/html/rfc8555"&gt;ACME&lt;/a&gt; stands for: Automatic Certificate Management Environment, and is the idea that every step along the way of creating and renewing certificates should be automated. No more manual creation of &lt;em&gt;CSR&lt;/em&gt; (&lt;em&gt;Certificate Signing Request&lt;/em&gt;), sending them per mail or manually uploading them to a CA website, enter your credit card details, and at some point get a mail back with the new signed certificate. All of this (except the credit card - you no longer need one) can be automated, and handled in a matter of seconds.&lt;/p&gt;&#10;&lt;p&gt;Time to write an updated blog post for the new module.&lt;/p&gt;</description></item><item><title>Disable screensaver for Raspberry Pi</title><link>https://andreas.scherbaum.la/post/2020-03-19_disable-screensaver-for-raspberry-pi/</link><pubDate>Thu, 19 Mar 2020 19:28:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-03-19_disable-screensaver-for-raspberry-pi/</guid><description>&lt;p&gt;The &lt;a href="https://www.raspberrypi.org/products/raspberry-pi-touch-display/"&gt;7&amp;quot; Raspberry display&lt;/a&gt; in the kitchen is nice, but unfortunately by default the installation comes with a screensaver enabled. After a while, the display goes dark. No one wants to stare at a blank display, and touch the screen in order to see crucial information.&lt;/p&gt;</description></item><item><title>Ansible: Use errors="ignore" instead of skip</title><link>https://andreas.scherbaum.la/post/2020-02-24_ansible-use-errorsignore-instead-of-skip/</link><pubDate>Mon, 24 Feb 2020 02:44:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-02-24_ansible-use-errorsignore-instead-of-skip/</guid><description>&lt;p&gt;Another &lt;em&gt;Ansible&lt;/em&gt; upgrade deprecation warning, which appears in &lt;em&gt;Ansible&lt;/em&gt; 2.8:&lt;/p&gt;</description></item><item><title>_ansible_item_label changes in Ansible 2.8</title><link>https://andreas.scherbaum.la/post/2020-02-20__ansible_item_label-changes-in-ansible-2.8/</link><pubDate>Thu, 20 Feb 2020 22:03:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-02-20__ansible_item_label-changes-in-ansible-2.8/</guid><description>&lt;p&gt;The &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; 2.8 upgrade brought a few failing Playbooks. I ran into the following error:&lt;/p&gt;</description></item><item><title>Hide the mouse cursor on a Raspberry Pi</title><link>https://andreas.scherbaum.la/post/2020-02-02_hide-the-mouse-cursor-on-a-raspberry-pi/</link><pubDate>Sun, 02 Feb 2020 13:03:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-02-02_hide-the-mouse-cursor-on-a-raspberry-pi/</guid><description>&lt;p&gt;The &lt;em&gt;openHAB&lt;/em&gt; &lt;em&gt;HABpanel&lt;/em&gt; we have in the kitchen runs on a &lt;em&gt;Raspberry Pi&lt;/em&gt; and uses a touchscreen display. The browser starts in &lt;a href="https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/"&gt;fullscreen mode&lt;/a&gt;, and shows a specific &lt;em&gt;HABpanel&lt;/em&gt; screen for this display. That&amp;rsquo;s all nice, but by default the mouse cursor is in the way. Let&amp;rsquo;s get rid of it.&lt;/p&gt;&#10;&lt;p&gt;The &lt;a href="https://www.raspberrypi.org/downloads/raspbian/"&gt;Raspbian&lt;/a&gt; system which runs on the &lt;em&gt;Pi&lt;/em&gt; comes with a package called &lt;code&gt;unclutter&lt;/code&gt;. This hides the curser after a few seconds. All I have to do is install the package, and start the app. Right?&lt;/p&gt;</description></item><item><title>Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)</title><link>https://andreas.scherbaum.la/post/2020-01-29_reboot-the-raspberry-pi-on-network-failures-brcmfmac-brcmf_cfg80211_scan-scan-error-110/</link><pubDate>Wed, 29 Jan 2020 01:41:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-29_reboot-the-raspberry-pi-on-network-failures-brcmfmac-brcmf_cfg80211_scan-scan-error-110/</guid><description>&lt;p&gt;In one of my &lt;a href="https://andreas.scherbaum.la/post/2020-01-18_occasional-habpanel-disconnect-from-the-openhab-server/"&gt;earlier blog posts&lt;/a&gt; I reported that occasionally the &lt;em&gt;HABpanel&lt;/em&gt; will disconnect from the server. Turns out it&amp;rsquo;s not &lt;em&gt;HABpanel&lt;/em&gt;, but it&amp;rsquo;s the Pi itself which is causing the trouble. Part of the problem why it took me so long to investigate is that the display is in the kitchen, and someone had to have a look and spot the small red error message. To work around that problem, I hooked the device up in the network monitoring, and had an alarm triggered when the device is not reachable. Sure enough, that happens occasionally.&lt;/p&gt;&#10;&lt;p&gt;Because I moved &lt;code&gt;/var/log&lt;/code&gt; to a small RAM disk to &lt;a href="https://andreas.scherbaum.la/post/2019-01-13_avoid-wear-out-of-ssd-cards-in-an-openhab-system/"&gt;avoid wearing out the SDcard&lt;/a&gt;, all logs are lost once the device is rebooted. Had to bring keyboard and mouse to the kitchen in order to save the logfiles once the device was no longer reachable over the network.&lt;/p&gt;&#10;&lt;p&gt;Turns out it&amp;rsquo;s a well-known problem with the network chip on the &lt;em&gt;Raspberry Pi&lt;/em&gt;. One of the &lt;em&gt;GitHub&lt;/em&gt; &lt;a href="https://github.com/raspberrypi/linux/issues/2453"&gt;issues is open since 2018&lt;/a&gt;, the &lt;a href="https://github.com/raspberrypi/linux/issues/3155"&gt;other one since 2019&lt;/a&gt;. So no hope for a real quick fix :-(&lt;/p&gt;</description></item><item><title>Dim the Raspberry Pi screen</title><link>https://andreas.scherbaum.la/post/2020-01-26_dim-the-raspberry-pi-screen/</link><pubDate>Sun, 26 Jan 2020 14:26:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-26_dim-the-raspberry-pi-screen/</guid><description>&lt;p&gt;The new &lt;em&gt;Raspberry&lt;/em&gt; display works nice, but the screen is too bright. At night in the kitchen it enlightens the entire room - unnecessarily. Since I&amp;rsquo;m using the original &lt;a href="https://www.raspberrypi.org/products/raspberry-pi-touch-display/"&gt;Raspberry Pi 7&amp;quot; touch display&lt;/a&gt;, the brightness can be controlled in &lt;code&gt;/sys/class/backlight/rpi_backlight/brightness&lt;/code&gt;. This &amp;ldquo;file&amp;rdquo; can hold a value from &lt;code&gt;0&lt;/code&gt; (&lt;em&gt;display off&lt;/em&gt;) to &lt;code&gt;255&lt;/code&gt; (&lt;em&gt;full bright&lt;/em&gt;).&lt;/p&gt;&#10;&lt;p&gt;My first idea was to use a light sensor. But the display itself does not have such a sensor, and if I connect one to the &lt;em&gt;Pi&lt;/em&gt;, I somehow need to connect the sensor in a way that it can &amp;ldquo;see&amp;rdquo; the light in the room. Which means the sensor is clearly visible next to the display.&lt;/p&gt;&#10;&lt;p&gt;The next idea is a cron job, which dims the display, depending on the time of the day. A bit brighter over the day, and almost dark in the night. Cron job works fine, but let&amp;rsquo;s make this an exercise in writing more code by using &lt;em&gt;systemd&lt;/em&gt; timers. Because why not making it more complicated &amp;hellip;&lt;/p&gt;</description></item><item><title>Ansible: TRANSFORM_INVALID_GROUP_CHARS deprecation warning</title><link>https://andreas.scherbaum.la/post/2020-01-25_ansible-transform_invalid_group_chars-deprecation-warning/</link><pubDate>Sat, 25 Jan 2020 16:39:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-25_ansible-transform_invalid_group_chars-deprecation-warning/</guid><description>&lt;p&gt;After upgrading &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; to version 2.8.3, the following deprecation warning appeared many times:&lt;/p&gt;</description></item><item><title>Ansible: "apt" module and loops</title><link>https://andreas.scherbaum.la/post/2020-01-20_ansible-apt-module-and-loops/</link><pubDate>Mon, 20 Jan 2020 22:28:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-20_ansible-apt-module-and-loops/</guid><description>&lt;p&gt;After upgrading &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; to version 2.8.3, the &amp;ldquo;&lt;a href="https://docs.ansible.com/ansible/latest/modules/apt_module.html"&gt;apt&lt;/a&gt;&amp;rdquo; module started spitting out deprecation warnings:&lt;/p&gt;</description></item><item><title>Occasional HABpanel disconnect from the openHAB server</title><link>https://andreas.scherbaum.la/post/2020-01-18_occasional-habpanel-disconnect-from-the-openhab-server/</link><pubDate>Sat, 18 Jan 2020 16:20:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-18_occasional-habpanel-disconnect-from-the-openhab-server/</guid><description>&lt;p&gt;The new display showing &lt;em&gt;HABpanel&lt;/em&gt; works quite nice. But occasionally the fullscreen browser will lose the network connection. As far as I can see, it&amp;rsquo;s not a &lt;a href="https://andreas.scherbaum.la/post/2020-01-13_raspberry-pi-disable-wi-fi-powersave-and-stay-connected-all-the-time/"&gt;Wi-Fi problem of the Raspberry Pi&lt;/a&gt;, but still annoying: in the morning the browser shows a small red warning that the connection to the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; server is lost, time is still correct, but temperature and the status of other devices is outdated. To fix that, I have to leave fullscreen mode, hit reload - and then there is no keyboard for &lt;a href="https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/"&gt;going into fullscreen mode&lt;/a&gt; again (that&amp;rsquo;s using the &lt;code&gt;F11&lt;/code&gt; key).&lt;/p&gt;</description></item><item><title>Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel</title><link>https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/</link><pubDate>Tue, 14 Jan 2020 16:58:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/</guid><description>&lt;p&gt;The &lt;em&gt;Raspberry Pi&lt;/em&gt; with the &lt;a href="https://www.raspberrypi.org/products/raspberry-pi-touch-display/"&gt;touch display&lt;/a&gt; for the &lt;a href="https://andreas.scherbaum.la/tags/openhab"&gt;home automation system&lt;/a&gt; is coming along nicely. One problem to solve: how to display the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; &lt;a href="https://www.openhab.org/docs/configuration/habpanel.html"&gt;HABpanel&lt;/a&gt;, and which browser to use?&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Firefox&lt;/em&gt; and &lt;em&gt;Chrome&lt;/em&gt; don&amp;rsquo;t run on &lt;a href="https://en.wikipedia.org/wiki/Raspbian"&gt;Raspbian&lt;/a&gt;. However &lt;a href="https://en.wikipedia.org/wiki/Chromium_(web_browser)"&gt;Chromium&lt;/a&gt; (the open source part of the &lt;em&gt;Chrome&lt;/em&gt; browser) is. That&amp;rsquo;s a good start. But how to start the browser automatically, and in full screen?&lt;/p&gt;</description></item><item><title>Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time</title><link>https://andreas.scherbaum.la/post/2020-01-13_raspberry-pi-disable-wi-fi-powersave-and-stay-connected-all-the-time/</link><pubDate>Mon, 13 Jan 2020 02:09:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-13_raspberry-pi-disable-wi-fi-powersave-and-stay-connected-all-the-time/</guid><description>&lt;p&gt;Recently I installed a &lt;a href="https://en.wikipedia.org/wiki/Raspberry_Pi"&gt;Raspberry Pi&lt;/a&gt; with &lt;a href="https://en.wikipedia.org/wiki/Raspbian"&gt;Raspbian&lt;/a&gt;, and attached a touchscreen to it. The device is supposed to work as a display for our &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; home automation system. All nice and shiny, except the Pi occasionally disconnects from the Wi-Fi - apparently in order to safe power. Once the network device is needed, the Wi-Fi is reconnected. That is the default setting.&lt;/p&gt;&#10;&lt;p&gt;That is quite annoying, because the &lt;em&gt;HABpanel&lt;/em&gt; will lose it&amp;rsquo;s connection to the &lt;em&gt;openHAB&lt;/em&gt; server, and no longer show widget updates. Some widgets like &amp;ldquo;time&amp;rdquo; will just continue to work, but other widgets like status of the &lt;a href="https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/"&gt;washing machine&lt;/a&gt;, or the current outside temperature just show the last state, and never update.&lt;/p&gt;</description></item><item><title>webhook service with TLS and Let's Encrypt certificate</title><link>https://andreas.scherbaum.la/post/2019-12-15_webhook-service-with-tls-and-lets-encrypt-certificate/</link><pubDate>Sun, 15 Dec 2019 19:15:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-12-15_webhook-service-with-tls-and-lets-encrypt-certificate/</guid><description>&lt;p&gt;For a number of services, I need a system/service which can receive web hooks, and act when such a trigger is received.&lt;/p&gt;</description></item><item><title>Ansible: Just mount an existing filesystem</title><link>https://andreas.scherbaum.la/post/2019-12-09_ansible-just-mount-an-existing-filesystem/</link><pubDate>Mon, 09 Dec 2019 01:04:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-12-09_ansible-just-mount-an-existing-filesystem/</guid><description>&lt;p&gt;There is no easy way to &amp;ldquo;just mount&amp;rdquo; an existing filesystem in &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt;, using the &lt;a href="https://docs.ansible.com/ansible/latest/modules/mount_module.html"&gt;mount&lt;/a&gt; module. I just want to mount an already defined mount point, and don&amp;rsquo;t really care about all the configuration here.&lt;/p&gt;</description></item><item><title>Ansible: copy a directory recursive - take two</title><link>https://andreas.scherbaum.la/post/2019-11-28_ansible-copy-a-directory-recursive-take-two/</link><pubDate>Thu, 28 Nov 2019 01:51:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-11-28_ansible-copy-a-directory-recursive-take-two/</guid><description>&lt;p&gt;Another slow attempt at &lt;a href="https://andreas.scherbaum.la/post/2019-04-11_ansible-copy-a-directory-recursive/"&gt;copying directories and files on a remote system&lt;/a&gt; from one place to another, using just &lt;em&gt;Ansible&lt;/em&gt; operations.&lt;/p&gt;</description></item><item><title>Install GNU parallel with Ansible</title><link>https://andreas.scherbaum.la/post/2019-11-27_install-gnu-parallel-with-ansible/</link><pubDate>Wed, 27 Nov 2019 23:33:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-11-27_install-gnu-parallel-with-ansible/</guid><description>&lt;p&gt;&lt;em&gt;GNU parallel&lt;/em&gt; allows you to multiplex tasks, and possibly use more CPU resources to speed up the task at hand. This works if your task can be split down into multiple independent tasks which otherwise will be executed serially.&lt;/p&gt;</description></item><item><title>Certificate expiration date in Ansible</title><link>https://andreas.scherbaum.la/post/2019-10-06_certificate-expiration-date-in-ansible/</link><pubDate>Sun, 06 Oct 2019 00:15:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2019-10-06_certificate-expiration-date-in-ansible/</guid><description>&lt;p&gt;In one of my &lt;em&gt;Ansible&lt;/em&gt; Playbooks I&amp;rsquo;m updating &lt;em&gt;Let&amp;rsquo;s Encrypt&lt;/em&gt; certificates. Because the Playbook is rather long, I want to make sure that &lt;em&gt;Ansible&lt;/em&gt; is not spending cycles on a certificate which is not about to expire. Hence I wrote a small filter plugin, which receives the certificate path and the number of days the certificate must be still valid.&lt;/p&gt;&#10;&lt;p&gt;This plugin is used to filter out any &amp;ldquo;good&amp;rdquo; certificate which does not need to be updated.&lt;/p&gt;</description></item><item><title>Ansible: copy a directory recursive</title><link>https://andreas.scherbaum.la/post/2019-04-11_ansible-copy-a-directory-recursive/</link><pubDate>Thu, 11 Apr 2019 21:08:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2019-04-11_ansible-copy-a-directory-recursive/</guid><description>&lt;p&gt;Recently I was looking for a way to copy a directory with all subdirectories, using &lt;em&gt;Ansible&lt;/em&gt;. For reasons beyond this post I couldn&amp;rsquo;t use the &lt;a href="https://docs.ansible.com/ansible/latest/modules/synchronize_module.html"&gt;synchronize&lt;/a&gt; (&lt;code&gt;rsync&lt;/code&gt;) module. So I had to find a way to copy everything with basic &lt;em&gt;Ansible&lt;/em&gt; steps.&lt;/p&gt;&#10;&lt;p&gt;That is possible, but it requires several steps, and it is very slow. Up to the point where it is not practical to use this approach for more than a few files and directories. Nevertheless, before moving on to another solution, I thought I document the steps here.&lt;/p&gt;</description></item><item><title>Weather Forecast in openHAB based on OpenWeatherMap, using Ansible</title><link>https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/</link><pubDate>Fri, 25 Jan 2019 21:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/</guid><description>&lt;p&gt;After setting up &lt;a href="https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/"&gt;OpenWeatherMap in openHAB&lt;/a&gt;, I had another project on my list: send a forecast for the next day.&lt;/p&gt;&#10;&lt;p&gt;That is rather easy to do with a &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html#time-based-triggers"&gt;Cron&lt;/a&gt; &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html"&gt;rule&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Install OpenWeatherMap in openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</link><pubDate>Thu, 24 Jan 2019 21:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</guid><description>&lt;p&gt;Next item on my home automation todo list: weather, and forecast. No good system without that data!&lt;/p&gt;&#10;&lt;p&gt;After exploring the options which &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; supports, I settled for &lt;a href="https://openweathermap.org/"&gt;OpenWeatherMap&lt;/a&gt;. Note: you need an account with &lt;em&gt;OWM&lt;/em&gt;, the basic functionality is free, the paid options give you more and better forecast.&lt;/p&gt;</description></item><item><title>Avoid "wear out" of SSD-cards in an openHAB system</title><link>https://andreas.scherbaum.la/post/2019-01-13_avoid-wear-out-of-ssd-cards-in-an-openhab-system/</link><pubDate>Sun, 13 Jan 2019 23:31:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-13_avoid-wear-out-of-ssd-cards-in-an-openhab-system/</guid><description>&lt;p&gt;You might know that problem: the brand new SSD in your system is super fast, but after a good time using it, the card is dead. Unlike spinning disks, which usually fail over time, and show I/O errors by blocks, SSD cards are prone to a problem called &lt;a href="https://en.wikipedia.org/wiki/Wear_leveling"&gt;Wear leveling&lt;/a&gt;. Blocks which are written more often will &amp;ldquo;wear out&amp;rdquo;, and become unresponsible. More writes increase this risk. And a typical &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; system does a number of writes all the time: every time an external status changes, it&amp;rsquo;s written to the event log. By default the syslog is written to disk as well, and then there is a myriad of systemd services, writing status information into files.&lt;/p&gt;</description></item><item><title>Configure a FRITZ!Box in openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2018-12-12_configure-a-fritz-box-in-openhab-using-ansible/</link><pubDate>Wed, 12 Dec 2018 22:03:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2018-12-12_configure-a-fritz-box-in-openhab-using-ansible/</guid><description>&lt;p&gt;A while ago I posted about &lt;a href="https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/"&gt;adding a Fritz!Box to openHAB, using Ansible&lt;/a&gt;. Now I had to use the Playbook to install another Raspberry, and found that some parts are missing in my posting. Mostly at the end, when it comes to configuring the &lt;a href="https://en.avm.de/products/fritzbox/"&gt;Fritz!Box&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Therefore let&amp;rsquo;s run over all the steps again, and make sure that everything is covered.&lt;/p&gt;</description></item><item><title>openHAB: redirect port 8080 to port 80</title><link>https://andreas.scherbaum.la/post/2018-07-15_openhab-redirect-port-8080-to-port-80/</link><pubDate>Sun, 15 Jul 2018 22:59:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-15_openhab-redirect-port-8080-to-port-80/</guid><description>&lt;p&gt;The &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; &lt;a href="https://www.raspberrypi.org/"&gt;Raspberry&lt;/a&gt; &lt;a href="https://docs.openhab.org/installation/openhabian.html"&gt;image&lt;/a&gt;, by default, listens on port 8080. After &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;using the image for a while&lt;/a&gt;, it became quite boring to always add the port to the URL. Quickly I decided to redirect port &lt;code&gt;80&lt;/code&gt; to port &lt;code&gt;8080&lt;/code&gt;, and make my life easier.&lt;/p&gt;&#10;&lt;p&gt;Not sure how much work that is in the &lt;em&gt;openHAB&lt;/em&gt; settings, I settled with redirecting or forwarding the port &lt;code&gt;80&lt;/code&gt; to port &lt;code&gt;8080&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Add a FRITZ!Box to openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/</link><pubDate>Wed, 04 Jul 2018 14:31:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/</guid><description>&lt;p&gt;Next step &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;on my way to add home automation&lt;/a&gt;: the &lt;em&gt;FRITZ!Box&lt;/em&gt;. Mostly for the current IP-address, and call information.&lt;/p&gt;&#10;&lt;p&gt;After some research it became obvious that more manual work is required, hence again something which can be automated.&lt;/p&gt;</description></item><item><title>Update openHAB Things configuration using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-03_update-openhab-things-configuration-using-ansible/</link><pubDate>Tue, 03 Jul 2018 15:16:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-03_update-openhab-things-configuration-using-ansible/</guid><description>&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/"&gt;earlier&lt;/a&gt; &lt;a href="https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/"&gt;openHAB&lt;/a&gt; &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;blog posts&lt;/a&gt; I automated the installation of extensions and linking of &lt;em&gt;Channels&lt;/em&gt; to &lt;em&gt;Items&lt;/em&gt;. Another problem I&amp;rsquo;m facing is the configuration of items. Again, that&amp;rsquo;s very easy in the UI - if you are willing to click through the list of &lt;em&gt;Items&lt;/em&gt;, and manually do all the steps.&lt;/p&gt;&#10;&lt;p&gt;Among other things I&amp;rsquo;m using the &lt;code&gt;binding-yahooweather&lt;/code&gt; and the &lt;code&gt;binding-ipp&lt;/code&gt; bindings, and the first one needs configuration before it can work properly. For the second one, it righly discovered a laser printer in our network, but occasionally when &lt;em&gt;openHAB&lt;/em&gt; requests the status information, this spins up an internal disk in the printer. Therefore it is feasible to increase the time between checks - it&amp;rsquo;s just the number of outstanding print jobs anyway. Doesn&amp;rsquo;t matter if someone reacts 5 or 15 minutes later, if the problem was not discovered instantly.&lt;/p&gt;</description></item><item><title>Auto-approve and link certain inbox items in openHAB using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/</link><pubDate>Mon, 02 Jul 2018 14:41:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/</guid><description>&lt;p&gt;&lt;a href="https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/"&gt;After starting to look&lt;/a&gt; into &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt;, and automate the installation with &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt;, I discovered that there is an API, but the main focus of the documentation and examples clearly is on using the UI and don&amp;rsquo;t automate the installation. It takes some time to figure out the details. In my last blog post I automated the installation of extensions/bindings, and ended with running a rediscover scan.&lt;/p&gt;&#10;&lt;p&gt;Now it&amp;rsquo;s time to see if there are new items in the inbox, and possibly auto-approve and link them in &lt;em&gt;Ansible&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Install openHAB2 bindings using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/</link><pubDate>Sun, 01 Jul 2018 11:33:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/</guid><description>&lt;p&gt;Recently I started looking into Home Automation, using a &lt;a href="https://en.wikipedia.org/wiki/Raspberry_Pi"&gt;Raspberry Pi&lt;/a&gt; and the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; as platform. The website provides ready-to-go images based on &lt;em&gt;Debian&lt;/em&gt;, named &lt;a href="https://docs.openhab.org/installation/openhabian.html"&gt;openHABian&lt;/a&gt;. Me being me, I decided to install the image, let it boot up for the first time, and then take it from there using &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; as automation tool. That&amp;rsquo;s a bit more effort in the beginning, but ensures that I can always just wipe the SDcard, and start over from the beginning. Especially useful if I screw up at some point during testing.&lt;/p&gt;</description></item><item><title>Create and renew Let's Encrypt certificates using Ansible</title><link>https://andreas.scherbaum.la/post/2018-05-27_create-and-renew-lets-encrypt-certificates-using-ansible/</link><pubDate>Sun, 27 May 2018 22:41:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-05-27_create-and-renew-lets-encrypt-certificates-using-ansible/</guid><description>&lt;p&gt;Update: Blog post using the &lt;a href="https://docs.ansible.com/ansible/latest/modules/acme_certificate_module.html"&gt;acme_certificate&lt;/a&gt; module &lt;a href="https://andreas.scherbaum.la/post/2020-03-24_create-and-renew-lets-encrypt-certificates-using-ansible-and-the-acme_certificate-module/"&gt;can be found here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; comes with a plugin which allows to create and renew &lt;a href="https://letsencrypt.org/"&gt;Let&amp;rsquo;s Encrypt&lt;/a&gt; certificates. &lt;a href="https://docs.ansible.com/ansible/latest/modules/letsencrypt_module.html"&gt;Documentation&lt;/a&gt; is sparse, so I decided to post about my own Playbook.&lt;/p&gt;</description></item><item><title>Configuring "locales" in Debian and Ubuntu, using Ansible - Reloaded</title><link>https://andreas.scherbaum.la/post/2017-02-22_configuring-locales-in-debian-and-ubuntu-using-ansible-reloaded/</link><pubDate>Wed, 22 Feb 2017 21:03:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2017-02-22_configuring-locales-in-debian-and-ubuntu-using-ansible-reloaded/</guid><description>&lt;p&gt;Last year &lt;a href="https://andreas.scherbaum.la/post/2016-07-15_configuring-locales-in-debian-and-ubuntu-using-ansible/"&gt;I posted about how to configure &amp;ldquo;locales&amp;rdquo; in Debian or Ubuntu&lt;/a&gt;, using &lt;em&gt;Ansible&lt;/em&gt;. Back then I did not know that there is an &lt;em&gt;Ansible&lt;/em&gt; &lt;code&gt;debconf&lt;/code&gt; module available, and I have no idea how I could miss it. Anyway, this makes things a bit easier, but not much.&lt;/p&gt;&#10;&lt;p&gt;First of all, the module let&amp;rsquo;s you both set and query values. However because the &lt;code&gt;locales&lt;/code&gt; package does not use &lt;code&gt;debconf&lt;/code&gt; for the list of locales, but stores this list in &lt;code&gt;/etc/locale.gen&lt;/code&gt;, things are still unnecessary complicated. But I managed to get it working without having to use an additional file as flag if this step was completed before.&lt;/p&gt;</description></item><item><title>Ansible: unpack a file on the remote host - Ansible version 2.2</title><link>https://andreas.scherbaum.la/post/2017-01-20_ansible-unpack-a-file-on-the-remote-host-ansible-version-2.2/</link><pubDate>Fri, 20 Jan 2017 23:46:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2017-01-20_ansible-unpack-a-file-on-the-remote-host-ansible-version-2.2/</guid><description>&lt;p&gt;A while ago I &lt;a href="https://andreas.scherbaum.la/post/2016-08-24_ansible-unpack-a-file-on-the-remote-host/"&gt;posted&lt;/a&gt; about a nasty problem in the &lt;a href="https://en.wikipedia.org/wiki/Ansible_(software)"&gt;Ansible&lt;/a&gt; &lt;code&gt;unarchive&lt;/code&gt; module: in version 2.0.x, if you do not specify &lt;code&gt;copy=no&lt;/code&gt;, &lt;em&gt;Ansible&lt;/em&gt; will happily copy the file again from the &lt;em&gt;Ansible&lt;/em&gt; host.&lt;/p&gt;</description></item><item><title>Ansible: unpack a file on the remote host</title><link>https://andreas.scherbaum.la/post/2016-08-24_ansible-unpack-a-file-on-the-remote-host/</link><pubDate>Wed, 24 Aug 2016 13:09:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2016-08-24_ansible-unpack-a-file-on-the-remote-host/</guid><description>&lt;p&gt;Trying to unpack a file on the remote host using &lt;a href="https://en.wikipedia.org/wiki/Ansible_(software)"&gt;Ansible&lt;/a&gt; might end in an error message:&lt;/p&gt;</description></item><item><title>Execute a required reboot, with Ansible (CentOS/Red Hat)</title><link>https://andreas.scherbaum.la/post/2016-08-23_execute-a-required-reboot-with-ansible-centosred-hat/</link><pubDate>Tue, 23 Aug 2016 18:44:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2016-08-23_execute-a-required-reboot-with-ansible-centosred-hat/</guid><description>&lt;p&gt;A while ago I blogged about &lt;a href="https://andreas.scherbaum.la/post/2016-08-10_execute-a-required-reboot-with-ansible-debianubuntu/"&gt;executing a reboot using Ansible on Debian-based operating systems&lt;/a&gt;. That is necessary after certain updates, as example after installing a new kernel. Turns out that things are very easy on &lt;em&gt;Debian&lt;/em&gt;, compared to &lt;em&gt;Red Hat based&lt;/em&gt; systems (&lt;a href="https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux"&gt;Red Hat&lt;/a&gt; and &lt;a href="https://en.wikipedia.org/wiki/CentOS"&gt;CentOS&lt;/a&gt; in my case).&lt;/p&gt;&#10;&lt;p&gt;First of all, there is &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=1192946"&gt;no clear indicator&lt;/a&gt; if a reboot is required. People work around this problem by &lt;a href="https://blog.programster.org/ansible-update-and-reboot-if-required-amazon-linux-servers"&gt;creating overly complicated scripts&lt;/a&gt;. The &lt;code&gt;needs-restarting&lt;/code&gt; tool in newer versions provides the &lt;a href="https://man7.org/linux/man-pages/man1/needs-restarting.1.html"&gt;-r option&lt;/a&gt; to indicate if a reboot is required. But the &lt;em&gt;CentOS&lt;/em&gt; 7 I&amp;rsquo;ve just installed does not come with this version.&lt;/p&gt;</description></item><item><title>Ansible and LXC Containers</title><link>https://andreas.scherbaum.la/post/2016-08-13_ansible-and-lxc-containers/</link><pubDate>Sat, 13 Aug 2016 18:18:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2016-08-13_ansible-and-lxc-containers/</guid><description>&lt;p&gt;&lt;em&gt;LXC&lt;/em&gt; is one of many available &lt;a href="https://en.wikipedia.org/wiki/Operating-system-level_virtualization"&gt;containerization solutions&lt;/a&gt; for &lt;em&gt;Linux&lt;/em&gt;. &lt;a href="https://en.wikipedia.org/wiki/Ansible_(software)"&gt;Ansible&lt;/a&gt; has basic &lt;a href="https://docs.ansible.com/ansible/lxc_container_module.html"&gt;support for LXC integrated&lt;/a&gt;, which is fine if you do not intend to do much inside of the container (aka: &lt;em&gt;fire &amp;amp; forget&lt;/em&gt;). My goal however is to start a full flavored container, and manage this container with &lt;em&gt;Ansible&lt;/em&gt; as well. That&amp;rsquo;s where things get a bit tricky, and looking around I couldn&amp;rsquo;t find much documentation how to do this.&lt;/p&gt;&#10;&lt;p&gt;This posting describes my approach.&lt;/p&gt;</description></item><item><title>Execute a required reboot, with Ansible (Debian/Ubuntu)</title><link>https://andreas.scherbaum.la/post/2016-08-10_execute-a-required-reboot-with-ansible-debianubuntu/</link><pubDate>Wed, 10 Aug 2016 11:20:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2016-08-10_execute-a-required-reboot-with-ansible-debianubuntu/</guid><description>&lt;p&gt;After updating &lt;em&gt;Linux&lt;/em&gt; packages, it sometimes is required to reboot the host. &lt;a href="https://en.wikipedia.org/wiki/Debian"&gt;Debian&lt;/a&gt; and &lt;a href="https://en.wikipedia.org/wiki/Ubuntu_(operating_system)"&gt;Ubuntu&lt;/a&gt; provide this information by the presence of a special file: &lt;code&gt;/var/run/reboot-required&lt;/code&gt;. &lt;a href="https://en.wikipedia.org/wiki/Ansible_(software)"&gt;Ansible&lt;/a&gt; makes it easy to reboot a host, but there are a few aspects which need attention.&lt;/p&gt;</description></item><item><title>Configuring "locales" in Debian and Ubuntu, using Ansible</title><link>https://andreas.scherbaum.la/post/2016-07-15_configuring-locales-in-debian-and-ubuntu-using-ansible/</link><pubDate>Fri, 15 Jul 2016 12:43:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2016-07-15_configuring-locales-in-debian-and-ubuntu-using-ansible/</guid><description>&lt;p&gt;Missing locale settings will result in error messages like:&lt;/p&gt;</description></item></channel></rss>