apiVersion: batch/v1
kind: Job
metadata:
  generateName: zfs-controller-high-availability-
  namespace: litmus
spec:
  template:
    metadata:
      labels:
        name: zfs-controller-high-availability
    spec:
      serviceAccountName: litmus
      restartPolicy: Never

      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        imagePullPolicy: IfNotPresent
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            #value: log_plays
            #value: actionable
            value: default

        command: ["/bin/bash"]
        args: ["-c", "ansible-playbook ./experiments/functional/zfs-LocalPV/zfs-controller-HA/test.yml -i /etc/ansible/hosts -vv; exit 0"]
