- Introduce new `install-ansible-build-scripts` function to install Ansible role scripts via curl - Add documentation for the new function in `library.md` under the Ansible section - Include link to available roles and usage example in the documentation - Maintain existing code style and documentation format
10 lines
233 B
Bash
Executable File
10 lines
233 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
|
|
install-ansible-build-scripts() {
|
|
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
|
|
|
|
echo 'Installing $1 scripts with user flag.'
|
|
curl -L "https://ansible.build/$1/install" | bash -s -- --user
|
|
}
|