Usage of the zone plugin

Hi,

I’m attempting to use the zone plugin to connect to Solaris 11 zones to re-configure the primary network.

Here’s my test inventory file;

[playpen]
localhost
e7812svsun003

[my-zones]
e7812svsun031 ansible_zone_host=e7812svsun003

and here’s my test playbook;

I have never used the zone connection but the error message above says you need to be the user root, so login as root or use become perhaps.

Thanks for the suggestion Kai.

I had noticed that, so I went and had a look at the source code for the plugin. The check for running as root is one of the first things the plugin does before anything has been pushed to the remote system. This leads me to think that I should have Ansible installed on my Solaris systems - which is something I don't want to do.

My thinking was that the framework would push the required scripts to the zone host then execute them.

Cheers
Tim.