61087/playbook-configure-configure-validate-database-inserting
Have a look at this, it might help:
$ cd /mongodb/tasks/main.yml --- - name: MongoDB - Import public key apt_key: keyserver: hkp://keyserver.ubuntu.com:80 id: EA312927 - name: MongoDB - Add repository apt_repository: filename: '/etc/apt/sources.list.d/mongodb-org-3.2.list' repo: 'deb <a href="http://repo.mongodb.org/apt/ubuntu">http://repo.mongodb.org/apt/ubuntu</a> xenial/mongodb-org/3.2 multiverse' state: present update_cache: yes - name: MongoDB - Install MongoDB apt: name: mongodb-org state: present update_cache: yes - name: MongoDB - Running state service: name: mongod state: started
I don't think there is a module specifically for inserting data into a MongoDB database. You can the exec module and execute the insert command.
Hi@Shashi, Ansible has one module named ec2. This is ...READ MORE
Hey @Pavan, you can use the following ...READ MORE
Try thhis out: --- - hosts: hosts tasks: ...READ MORE
Hi@akhtar, You can update your file using lineinfile ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Try this: - hosts: web tasks: ...READ MORE
Hi @Hannah, I have this and it ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.