mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-01 21:15:27 +03:00
Added Travis testing and hooks for galaxy
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
TAR_FILE="v1.6.0.tar.gz"
|
||||
|
||||
# Prompt for Ansible role name
|
||||
read -p "Enter the Ansible role name: " input
|
||||
|
||||
# Update .travis.yml with Ansible role name
|
||||
sed -i '' "s/replace_role/${input}/g" ".travis.yml"
|
||||
|
||||
# Update tests/test.yml with Ansible role name
|
||||
sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
|
||||
|
||||
# Cleanup
|
||||
if [ -f $TAR_FILE ]; then
|
||||
rm $TAR_FILE
|
||||
fi
|
||||
Reference in New Issue
Block a user