Skip to content

Instantly share code, notes, and snippets.

@xen0l
Created September 27, 2016 12:09
Show Gist options
  • Save xen0l/822845ec7d091ed048bbc24c3b0e924e to your computer and use it in GitHub Desktop.
Save xen0l/822845ec7d091ed048bbc24c3b0e924e to your computer and use it in GitHub Desktop.
How to use zone connection with Ansible and OpenIndiana
# If you want to run this as a non-root user, assign "Zone Management" RBAC profile to non-root account.
root@openindiana:/root/ansible# ansible www -m ping
www | SUCCESS => {
"changed": false,
"ping": "pong"
}
www ansible_connection=zone
---
- name: install vim
hosts: www
tasks:
- pkg5: name=vim state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment