Code Monkey home page Code Monkey logo

ansible-role-pm2's Introduction

Hi there, I'm Karl ๐Ÿ‘‹

๐ŸŽ– Certificates

https://www.credly.com/badges/98ebfa74-184d-4215-98cf-f6d0b501f8fa/public_url https://www.credly.com/badges/20de1080-7c5c-4beb-adc9-ba50d9822c2f/public_url

:octocat: Github Statistics

fubarhouse fubarhouse

ansible-role-pm2's People

Contributors

fubarhouse avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jlisbz

ansible-role-pm2's Issues

Ensure PM2 exists!

So I'm constantly fighting with this Ansible NPM module...
I've added commit b9c810f to achieve the following:

  • changes multiple install tasks into one task.
  • changes multiple symlinks into one task.
  • adds a task to verify installation to the exact granularity of the file
  • if the verification task fails, a dirty installation occurs which has very specific requirements.

I can't say why the Ansible NPM module isn't consistent with me, but having the second install if the program doesn't exist after the first install task basically guarentee's I won't need to look at this again. Perhaps one day we won't need to do this... But, it's not today.

Tests are now passing for that commit, so I'll create another release - should be the last one for a time.

Add task to import mysql database as required.

Already done, a nice to have. Now there'll be two tasks, one to ensure the database exists if users want to run initialization scripts or use another means of populating data as I have been, and one to simply import a database in the nodejs repository only when required.

The data structure has changed, in that the object is now structured as such:

database:
  name: myApp
  file: data/database.sql

Testing is to come, before release.

Add gem install tasks after installation of pm2

Having getting my hands dirty with node more, I'm seeing a relationship between node and ruby.

I'm going to add my ruby role as a dependency optionally and install some gems using the command/raw task simply because the ansible gem task is essentially broken from experience...

My reasoning is more specific to being able to execute node-compass applications without error, as ruby gems are used in this process server side.

Missing Argument Path

I think the module File needs the directive path as required, here

path: {{ item.location }}

Correct?

failed: [] (item={u'port': 3000, u'start': u'app/bin/www', u'location': u'/opt/app', u'repository': u'myRepo', u'name': u'app'}) => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "follow": true, 
            "force": false, 
            "recurse": true, 
            "state": "directory"
        }
    }, 
    "item": {
        "location": "/opt/app", 
        "name": "app", 
        "port": 3000, 
        "repository": "myRepo", 
        "start": "app/bin/www"
    }, 
    "msg": "missing required arguments: path"
}

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.