Added lockfile checks in ansible