Monday, January 28, 2019

Reset application preference in Fedora



Reset application preference in Fedora :

--
For example for gedit editor:

dconf reset -f /org/gnome/gedit/

--

You can reset other applications like terminal, nautilus, etc., check it out using:

dconf list /org/gnome/ -> list the applications whose preference can be reset.

--


Thursday, January 17, 2019

Reverting a patch

First create patch using
// here I consider last patch applied:
# git format-patch -1
Then  revert a patch using below command.
# git apply -R  your_patch_file.patch
make further changes in the files directly and start commiting,pushing the changes.

Wednesday, January 16, 2019

Go training


Go training stuff :

https://github.com/ardanlabs/gotraining


Monday, January 14, 2019

Pause in ansible playbook waiting for user intervention



How to use sleep in playbook ?

---
- hosts: webservers
  tasks:
  - name: install tftp
    yum: pkg=tftp state=installed
    failed_when: False
  - pause: minutes=5


--
- pause: minutes=5

--

It shows the option
Pausing for 300 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)


So, C to continue early and A to abort. 

--

This can be used for ansible debugging.
We can exit a playbook after a (debugging) role.