On Mon, Feb 24, 2014 at 4:27 PM, Vidar Langseid
<vidar.langs...@gmail.com> wrote:
> - hosts: nfsserver
>   user: root
>   any_errors_fatal: yes
>   roles:
>     - role: common
>     - role: nfsserver

You can hit all hosts in a separate play in the playbook, then apply
your roles only to a select group of hosts in a later play. The facts
will be available throughout the entire playbook run and not be
limited to only the hosts you specified in the second play. So instead
of your example above, you would get:

- hosts: all
  gather_facts: yes

- hosts: nfsserver
  user: root
  any_errors_fatal: yes
  roles:
    - role: common
    - role: nfsserver

-- 
Nick Groenen | zoni | @NickGroenen
https://zoni.nl | GnuPG/GPG key ID: 0xAB5382F6

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGV0WwMdWMVUzMZSEN7-JJ5Y-9EG82AxBYrGnre55BjWOsin0g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to