summaryrefslogtreecommitdiffstats
path: root/test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml')
-rw-r--r--test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml b/test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml
new file mode 100644
index 000000000..fff797c27
--- /dev/null
+++ b/test/integration/openshift_health_checker/preflight/playbooks/setup_container.yml
@@ -0,0 +1,23 @@
+---
+# Required vars:
+# * name = name of the container to be started
+
+- name: Start CentOS 7 container
+ gather_facts: no
+ hosts: localhost
+ connection: local
+ vars:
+ container_name: openshift_ansible_test_{{ name }}
+ tasks:
+ - name: start container
+ docker_container:
+ name: "{{ container_name }}"
+ image: centos:7
+ command: sleep infinity
+ recreate: yes
+ - name: add host
+ add_host:
+ name: "{{ container_name }}"
+ ansible_connection: docker
+ groups: OSEv3,masters,nodes
+ deployment_type: origin