mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
40d7751fbd
I’m going to be reusing this code on the Tower side, and I’m trying to refactor some of the AWX specific bits out. There will probably be more to come, but this is a good start.
11 lines
469 B
YAML
11 lines
469 B
YAML
---
|
|
- name: Build and deploy AWX
|
|
hosts: all
|
|
gather_facts: false
|
|
roles:
|
|
- { role: check_vars }
|
|
- { role: image_build, when: "dockerhub_base is not defined" }
|
|
- { role: image_push, when: "docker_registry is defined and dockerhub_base is not defined" }
|
|
- { role: kubernetes, when: "openshift_host is defined or kubernetes_context is defined" }
|
|
- { role: local_docker, when: "openshift_host is not defined and kubernetes_context is not defined" }
|