Skip to content

vscoder/ansible-role-db

Repository files navigation

Build Status

ansible-role-db

Install MongoDB 3.2 This role is part of OTUS DevOps cource

Requirements

None.

Installation

Add to requirements.yml

- name: vscoder.db
  src: https://github.com/vscoder/ansible-role-db
  version: v0.2

Role Variables

name type default value description
key_url string https://www.mongodb.org/static/pgp/server-3.2.asc URL of apt key file
mongodb_version string 3.2 MongoDB version
packages list ["mongodb-org"] packages to install
mongo_port integer 27017 mongod service listen tcp port number
mongo_bind_ip string 127.0.0.1 mongod service listen ip
env string local environment name

Dependencies

None

Example Playbook

- hosts: db
  roles:
    - { role: vscoder.db, mongo_bind_ip: 0.0.0.0 }

Makefile targets

Target Description
install_ansible_venv install ansible into local .venv using python3 -m venv
install_ansible_virtualenv install ansible into local .venv using virtualenv
molecule_static_analyse execute molecule lint and molecule syntax
molecule_create create molecule instances via molecule create
molecule_verify apply playbook to existent instance and run tests (converge and verify)
molecule_test run molecule test complex testing
molecule_destroy force destroy instances molecule destroy -f

License

MIT

Author Information

Aleksey Koloskov

About

Test ansible role to deploy MongoDB version 3.2

Resources

License

Stars

Watchers

Forks

Packages

No packages published