config.yml 776 B

1234567891011121314151617181920212223242526
  1. ---
  2. - name: "populate oo_hosts_to_config host group if needed"
  3. hosts: localhost
  4. gather_facts: no
  5. tasks:
  6. - name: Evaluate oo_host_group_exp if it's set
  7. add_host: "name={{ item }} groups=oo_hosts_to_config"
  8. with_items: "{{ oo_host_group_exp | default(['']) }}"
  9. when: oo_host_group_exp is defined
  10. - name: "Configure instances"
  11. hosts: oo_hosts_to_config
  12. connection: ssh
  13. user: root
  14. vars_files:
  15. - vars.yml
  16. - "vars.{{ oo_env }}.yml"
  17. roles:
  18. - ../../../roles/atomic_base
  19. - ../../../roles/atomic_proxy
  20. - ../../../roles/docker_img_build
  21. - ../../../roles/docker_img_rhel6ops
  22. - ../../../roles/docker_img_puppet
  23. - ../../../roles/docker_img_proxy
  24. - ../../../roles/docker_img_monitoring
  25. - ../../../roles/shutdown_nightly