Skip to content

Latest commit

 

History

History
30 lines (30 loc) · 647 Bytes

collections_in_playbooks.md

File metadata and controls

30 lines (30 loc) · 647 Bytes
- name: Run a module from inside a collection
  hosts: localhost
  tasks:
    - name: Gather some real Facts.
      pystol.actions.real_facts:
        name: John Snow
      register: testout
    - debug:
        msg: "{{ testout }}"
- name: Run a module from inside a collection using the collections keyword
  hosts: localhost
  collections:
    - pystol.actions
  tasks:
    - name: Gather some real Facts.
      real_facts:
        name: Jane Doe
      register: testout
    - debug:
        msg: "{{ testout }}"
- name: Run a role from inside of a collection
  hosts: localhost
  roles:
    - "pystol.actions.pingtest"