Here is my ansible playbook. I want to use role ec2_jumphost to create an 
EC2 instance and format / mount attached EBS volumes. I used add_host in 
the role to add the new EC2 instance as a host. How can I run commands in 
the role on the new EC2 instance?

Here is my ansible playbook - aws.yml.
---
...
- name: Create AWS Jump Host
  hosts: localhost
  connection: local
  gather_facts: no 
  vars_files:
    - "derived_vars/{{ vpc_name }}.yml"
  roles:    
    - ec2jumphost


-- 
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/06061718-e2f2-45aa-83c5-d239a1e38395%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to