Created
September 27, 2016 12:09
-
-
Save xen0l/822845ec7d091ed048bbc24c3b0e924e to your computer and use it in GitHub Desktop.
How to use zone connection with Ansible and OpenIndiana
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www ansible_connection=zone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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