Coder Social home page Coder Social logo

jeket / ansible-development-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lean-delivery/ansible-development-kit

0.0 0.0 0.0 119 KB

Ansible Development Kit (roles development)

Home Page: https://lean-delivery.com/ansible-development-kit

License: Apache License 2.0

ansible-development-kit's Introduction

ansible-development-kit

License Build Status Build Status

How to use:

pip install cookiecutter

Create a new role

or

Enter for the role name question a value without the ansible-role- prefix, e.g. example.

Make changes in the corresponding files: copyright section in LICENSE, badge section in README.md (you can get galaxy's role id by running: ansible-galaxy info lean_delivery.example |grep '\bid'), etc.

Update an existing role

  1. cd ansible-role-example
  2. cookiecutter https://github.com/lean-delivery/ansible-development-kit --output-dir .. --overwrite-if-exists
  3. git status
  4. git add . -p
Useful commands:
- y - add this hunk to commit
- n - do not add this hunk to commit
- d - do not add this hunk or any of the later hunks in this file
- s - split the current hunk into smaller hunks
- e - manually edit the hunk
  1. git commit -m "Updated by cookiecutter and ansible-development-kit"

In order not to provide the same answers for cookecutter's questions it makes sense to put in the role's directory a config file .cookiecutter.yml like this:

---
default_context:
  role_name: example

To switch betweens Linux and Windows molecule tests add this variables to .cookiecutter.yml:

---
default_context:
  role_name: example
  linux_tests: "true"
  windows_tests: "false"

To increase root volume size for Linux and Windows platforms in AWS add this variables to .cookiecutter.yml:

---
default_context:
  role_name: example
  customize_vol_size_linux: "true"
  volume_size_linux: 10
  customize_vol_size_windows: "true"
  volume_size_windows: 32

and run cookiecutter the following way:

cookiecutter https://github.com/lean-delivery/ansible-development-kit --output-dir .. --overwrite-if-exists --config-file .cookiecutter.yml --no-input

ansible-development-kit's People

Contributors

dzmitry-rudnouski avatar dzmitryastrouski avatar ibarysev avatar kharkevich avatar pavelpikta avatar tgadiev avatar viachaslaukabak avatar vnovichek avatar vutkin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.