Skip to content

Commit

Permalink
Update ansible-install
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaweees committed May 15, 2024
1 parent 6670cf8 commit 4c3f8e6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ansible-install
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
#
# Title: Kaweees's Ansible Playbook
# Description: A bash script to install Kaweee's Ansible playbook and run it.
# Author: Your Name
# Description: A bash script to install Kaweees's Ansible playbook and run it.
# Author: Miguel Villa Floran

title() {
local color='\033[1;37m'
Expand All @@ -16,9 +16,11 @@ title "Greetings, $USER. Let's install Kaweees's Ansible Playbook."
sudo apt update -y && sudo apt upgrade -y
sudo apt install -y software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install -y ansible git
sudo apt install -y ansible git cowsay

# Execute Ansible playbook
ansible-pull -K -U https://github.com/Kaweees/ansible.git -t install local.yml
# Or run locally
# ansible-playbook -K local.yml -t install
# Execute Ansible playbook remotely
# ansible-pull -K -U https://github.com/Kaweees/ansible.git local.yml --ask-become-pass --tags minimal-install

# Clone and execute Ansible playbook locally
git clone https://github.com/Kaweees/ansible.git ~/Documents/GitHub/Projects/ansible --recusive && cd ~/Documents/GitHub/Projects/ansible
ansible-playbook -K local.yml --ask-become-pass --tags minimal-install

0 comments on commit 4c3f8e6

Please sign in to comment.