Skip to content

Error on Ubuntu 16.04 LTS #3

Description

@deadghost

Ansible 2.1.1.0
I ran the following locally on Ubuntu 14.04 LTS and in production on Ubuntu 16.04 LTS.
It runs fine on 14.04 but errors on 16.04. I'm no server whiz but it probably has something to do with the upstart to systemd change as of 15.04.

 - name: Run BLAH app.
   runit:
     name="BLAH"
     state="up"
     enabled="yes"
     command="node /home/admin/blah/app.js"
     user="admin"

TASK [gotansible.runit : Ubuntu - start and enable runit service] **************
fatal: [alice]: FAILED! => {"changed": false, "failed": true, "msg": "Error when trying to enable runsvdir: rc=1 Failed to execute operation: No such file or directory\n"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions