Skip to content

Instantly share code, notes, and snippets.

@xen0l
Created September 27, 2016 12:09
Show Gist options
  • Select an option

  • Save xen0l/822845ec7d091ed048bbc24c3b0e924e to your computer and use it in GitHub Desktop.

Select an option

Save xen0l/822845ec7d091ed048bbc24c3b0e924e to your computer and use it in GitHub Desktop.

Revisions

  1. xen0l created this gist Sep 27, 2016.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # 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"
    }
    1 change: 1 addition & 0 deletions hosts.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    www ansible_connection=zone
    5 changes: 5 additions & 0 deletions playbook.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ---
    - name: install vim
    hosts: www
    tasks:
    - pkg5: name=vim state=present