# Usage of the zone plugin

**URL:** <https://forum.ansible.com/t/usage-of-the-zone-plugin/28348>\
**Category:** Ansible Project\
**Created:** [August 17, 2018, 12:55am UTC](https://forum.ansible.com/t/usage-of-the-zone-plugin/28348 "2018-08-17T00:55:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Shaw](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@Tim\_Shaw](https://forum.ansible.com/u/Tim_Shaw)\
**Post date:** [August 17, 2018, 12:55am UTC](https://forum.ansible.com/t/usage-of-the-zone-plugin/28348/1 "2018-08-17T00:55:32Z")

</div>

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;

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 18, 2018, 11:48am UTC](https://forum.ansible.com/t/usage-of-the-zone-plugin/28348/2 "2018-08-18T11:48:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Tim\_Shaw](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@Tim\_Shaw](https://forum.ansible.com/u/Tim_Shaw)\
**Post date:** [August 19, 2018, 12:13am UTC](https://forum.ansible.com/t/usage-of-the-zone-plugin/28348/3 "2018-08-19T00:13:29Z")

</div>

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.
