- name: add to group
  hosts: lockbox01.phx2.fedoraproject.org
  user: root
  gather_facts: False

  tasks:
  - name: add it to the special group
    local_action: add_host hostname={{ target }} groupname=tmp_just_created

- name: provision instance
  hosts: tmp_just_created
  user: root
  gather_facts: True

  vars_files: 
   - /srv/web/infra/ansible/vars/global.yml
   - "{{ private }}/vars.yml"
   - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

  tasks:
  - include: "{{ tasks }}/growroot_cloud.yml"
  - include: "{{ tasks }}/cloud_setup_basic.yml"

  handlers:
  - include: "{{ handlers }}/restart_services.yml"
