Here is a quick tip for a very useful option, which is not widely known! If you want to search for a matching string in…
tips
List Openstack container’s options with the swift command-line client – capabilities command
First, you need to install swift command-line utility and second, install the command-line tool to manage your account: Install OpenStack swift client only With the…
ansible – using ansible vault with copy module to decrypt on-the-fly files
Here is an interesting tip for all who what to protect the sensitive information with ansible. Our example is simple enough – we want to…
ansible – restart a (nginx) service only if it is running and the configuration is ok
Another ansible quick tip showing how to restart a program properly. We want to restart the program or the service only if it is running…
ansible – insert after only if the pattern exists and the new insert is not there
Here is a quick ansible tip for system administrators for the ansible lineinfile. Imagine you want to insert a line after a word (or a…
Upload files and directories with swift in OpenStack
First, you need to install swift command line utility and here is how to do it: Install OpenStack swift client only In general, you will…
aptly – ERROR: unable to remove: published repo with storage:prefix/distribution ./mytest-stable not found
Sometimes the user manual may be unclear and you came here searching for a solution of dropping a published repository. We have aptly version: 1.3.0…
ansible making a link: error – refusing to convert from file to symlink
A quick notice for your ansible scripts and as a reminder the right syntax for making a link with ansible is: src must be existing…
Ubuntu apt – InRelease is not valid yet (invalid for another 151d 18h 5min 59s)
Invalid time could cause your server (or probably your virtual server or docker instance) to be unable to use Ubuntu’s packaging system apt. It is…
Make systemd to save logs on the disk
On some Linux distributions, systemd log files are not saved on your disk, but only temporary in the memory and when you reboot all logs…