package main

import (
	"os/exec"

	log "github.com/sirupsen/logrus"
)

func init() {
	log.SetFormatter(&log.TextFormatter{DisableLevelTruncation: true, DisableTimestamp: true})
}

func checkAnsibleExist() {
	_, err := exec.LookPath("ansible")
	if err != nil {
		log.Fatalln("ansible: command not found. Run the `pip install -r ./requirements.txt` command to install it.")
	}
}
