feat: add shuttle
This commit is contained in:
20
actions/ansible.go
Normal file
20
actions/ansible.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func Ansible(ctx context.Context) error {
|
||||
log.Printf("running ansible playbook\n")
|
||||
|
||||
cmd := exec.Command("ansible-playbook", "site.yml")
|
||||
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
return cmd.Run()
|
||||
}
|
Reference in New Issue
Block a user