# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
'''
DOCUMENTATION:
author:'Marcos Diez <marcos (at) unitron.com.br>'
lookup:mongodb
version_added:"2.3"
short_description:lookupinfofromMongoDB
description:
-'The ``MongoDB`` lookup runs the *find()* command on a given *collection* on a given *MongoDB* server.'
-'The result is a list of jsons, so slightly different from what PyMongo returns. In particular, *timestamps* are converted to epoch integers.'
options:
connect_string:
description:
-"Can be any valid MongoDB connection string, supporting authentication, replicasets, etc. More info at https://docs.mongodb.org/manual/reference/connection-string/"