/usr/bin/ansible unlock_gitlab -b -m shell -a "psql -h /var/opt/gitlab/postgresql -d gitlabhq_production -f /tmp/unlock_user.sql >>/tmp/unlock_user.txt && cat /tmp/unlock_user.txt"
unlock_user.sql
SELECT name,username,state FROM users WHERE state='ldap_blocked';
update users set state='active' where state='ldap_blocked';