Skip to content

Local cachíng of Ansible Facts

Every time Ansible runs a Playbook, the first step (by default) is gathering facts about the target system:

PLAY [all-systems]

TASK [Gathering Facts]
ok: [host1]
ok: [host2]

This step is implicit, and it is not necessary (but possible) to add the gather facts step to every Playbook. The module which retrieves all the information is "setup", and by default it tries to gather as much information about the target system as possible. When the "setup" task is added as an extra step in the Playbook, the information about the destination system is refreshed and updated:

  tasks:
    - name: Refresh destination information
      setup:

That might be necessary when a Playbook changed vital system settings.

Gathering the facts is a time-consuming process, and for a short Playbook it is quite possible that this is the longest-running task. And it's repeated every time the Playbook runs.

Ansible provides Cache plugins which can store the gathered facts. If the system facts don't change between Playbook runs, this will greatly speed up the runtime of Playbooks. The facts cache can be stored in JSON files, in a Redis DB, in a Memcache, and a few other options. The simplest way, without additional tools required, is the "jsonfile" cache. Central implementations like Redis or Memcache allow multiple Ansible controller hosts to use the same facts cache, whereas local caches like "JSON" are only available on a single host, and every Ansible controller must build and maintain it's own cache.

 

Continue reading "Local cachíng of Ansible Facts"
  • Twitter
  • Bookmark Local cachíng of Ansible Facts at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Local cachíng of Ansible Facts
  • Bloglines Local cachíng of Ansible Facts
  • Technorati Local cachíng of Ansible Facts
  • Fark this: Local cachíng of Ansible Facts
  • Bookmark Local cachíng of Ansible Facts at YahooMyWeb
  • Bookmark Local cachíng of Ansible Facts at Furl.net
  • Bookmark Local cachíng of Ansible Facts at reddit.com
  • Bookmark Local cachíng of Ansible Facts at blinklist.com
  • Bookmark Local cachíng of Ansible Facts at Spurl.net
  • Bookmark Local cachíng of Ansible Facts at Simpy.com
  • Bookmark Local cachíng of Ansible Facts at blogmarks
  • Bookmark Local cachíng of Ansible Facts with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

How to clear the cached data in Android - without any App

Up until recently I was using an App to clean the the Android cache once in a while. If you don't, the device over time get's sluggish, because too many apps store too much data in the cache. Over time this cache can grow to GBs in size.

On the other hand, every single "clean cache App", over time, started showing more and more aggresive advertising. I get that the developer wants to make some money, that's fine. But maybe the money is not enough, so more advertising it is.

Turns out, there is a built-in way in Android to clean the cache. No need for an extra App.

 

 

Continue reading "How to clear the cached data in Android - without any App"
  • Twitter
  • Bookmark How to clear the cached data in Android - without any App at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg How to clear the cached data in Android - without any App
  • Bloglines How to clear the cached data in Android - without any App
  • Technorati How to clear the cached data in Android - without any App
  • Fark this: How to clear the cached data in Android - without any App
  • Bookmark How to clear the cached data in Android - without any App at YahooMyWeb
  • Bookmark How to clear the cached data in Android - without any App at Furl.net
  • Bookmark How to clear the cached data in Android - without any App at reddit.com
  • Bookmark How to clear the cached data in Android - without any App at blinklist.com
  • Bookmark How to clear the cached data in Android - without any App at Spurl.net
  • Bookmark How to clear the cached data in Android - without any App at Simpy.com
  • Bookmark How to clear the cached data in Android - without any App at blogmarks
  • Bookmark How to clear the cached data in Android - without any App with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Reduce Spotify cache size under Linux

The Spotify client for Linux, by default, will eat away a GB of your precious disk space. Since I mostly listen to random playlists, and rarely ever hear a song twice, there is no need to store all the songs on my hard disk.

 

Continue reading "Reduce Spotify cache size under Linux"
  • Twitter
  • Bookmark Reduce Spotify cache size under Linux at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Reduce Spotify cache size under Linux
  • Bloglines Reduce Spotify cache size under Linux
  • Technorati Reduce Spotify cache size under Linux
  • Fark this: Reduce Spotify cache size under Linux
  • Bookmark Reduce Spotify cache size under Linux at YahooMyWeb
  • Bookmark Reduce Spotify cache size under Linux at Furl.net
  • Bookmark Reduce Spotify cache size under Linux at reddit.com
  • Bookmark Reduce Spotify cache size under Linux at blinklist.com
  • Bookmark Reduce Spotify cache size under Linux at Spurl.net
  • Bookmark Reduce Spotify cache size under Linux at Simpy.com
  • Bookmark Reduce Spotify cache size under Linux at blogmarks
  • Bookmark Reduce Spotify cache size under Linux with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca