Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

AfsmNGhr/ansible-role-bootstrap-sanic-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role for bootstraping sanic microservice

Steps:

  • Create private repository on the bitbucket
  • First commit README (need for git submodule)
  • Create submodule in core repository
  • Initialize submodule
  • Copy bootstrap files
  • Initial commit
  • Push to repository

Example Playbook:

---

- name: Bootstrapping microservice
  hosts: localhost
  gather_facts: no
  roles:
    - bootstrap-sanic-microservice
  vars:
    bitbucket_user: *****
    bitbucket_password: *****
    team: test # our team
    repo: test.service # with dot service postfix
    registry: example.com # our docker registry
    core_path: /home/test/core.services # absolute path with services
    submodules_path: 'services/{{ repo }}'
    project_path: '/home/test/core.services/services/{{ repo }}' # absolute project path