Greetings!

I've configured ec2.py and boto to manipulate my ec2 infrastructure 
dynamically with tags. My question is: how do I do this with other modules?
For example, turning on my infra by tag_OS_centos works fine-

- name: Turn on my infrastructure
  hosts: localhost
  gather_facts: no
  connection: local
  tasks:
    - name: turn on instances
      ec2:
        instance_tags:
          OS: centos
        region: us-east-1
        state: running
        wait: True


How can I use this same approach to run other modules? Say, if I wanted to 
target all of my centos instances to update their packages

- name: upgrade all packages
  yum:
    name: '*'
    state: latest

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/063b8ca3-4381-4671-833a-de65adfda4b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to