'Lookup the current timezone by resolving `/etc/localtime`.'

def get(self, key, phase):

    if (key == 'name'):
        try:
            tz = os.readlink('/etc/localtime')
            return tz.replace('/usr/share/zoneinfo/', '')
        except:
            self.module.warn('Could    not    read    /etc/localtime.    Assuming    UTC')
            return 'UTC'
    else:
        self.module.fail_json(msg='{0}    is    not    a    supported    option    on    target    platform'.format(key))
