mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2025-12-14 05:45:22 +03:00
18 lines
379 B
Bash
Executable File
18 lines
379 B
Bash
Executable File
#!/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
|