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…
Tag: shell
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…
su to user with no shell
Most users in our linux/unix system have no ability to login, because the shell is /sbin/nologin (or even /bin/false). But sometimes we need to execute…
Busybox ash, Debian dash and simulating bash arrays
Busybox ash (Almquist shell) shell and Debian dash (Debian Almquist shell) are lightweight Unix shell and they are a variant of System V.4 variant of…