Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Iocage jails and Ansible management #575

Description

@OnigamiSama

I'm trying tyo use Ansible to manage my growing number of jails created with iocage version 0.9.10 2017/12/22.

I use ansible_connection=jail instead of ssh because it make more sens to me. Problem is Ansible can't connect to the host unless I give it a name with jail -m jid=JAILID name=JAILNAME.

But doing like this seems to create two jails if I stop the jail with ìocage stop jailname' and then do jls the jail is still showing, and when I restart the jail with iocage start jailname the jail start fine but jls show two jails running with the same name

So, what I want to know is if it's possible to give a jail a proper name on creation ? I always use iocage create -n jailname when creating a jail but it seems to not be the same as jail -m jid=JAILID name=JAILNAME

Activity

  1. skarekrow commented on Jun 26, 2018

    @skarekrow
    Member

    The jail should be under the name ioc-jailname as far as jail(8) is concerned, are you able to paste some output to show what is happening and what you expect?

  2. OnigamiSama commented on Jun 26, 2018

    @OnigamiSama
    Author

    @skarekrow yep it is what I was looking for. It work with ioc-jailname

    Exemple :

    zutsuu% sudo ansible jails -m ping
    nginx | FAILED! => {
    "msg": "incorrect jail name nginx"
    }
    ioc-mediaserver | SUCCESS => {
    "changed": false,
    "ping": "pong"
    }

  3. skarekrow commented on Jun 26, 2018

    @skarekrow
    Member

    Great! Glad to hear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions