ansible_roles_rework #2
3 changed files with 4 additions and 3 deletions
|
@ -7,7 +7,7 @@ if [[ $(command -v ansible) ]]; then
|
||||||
printf "ansible already installed"
|
printf "ansible already installed"
|
||||||
elif [[ $(uname) == "Linux" ]]; then
|
elif [[ $(uname) == "Linux" ]]; then
|
||||||
if [[ $(command -v pacman) ]]; then
|
if [[ $(command -v pacman) ]]; then
|
||||||
sudo pacman -Sy ansible
|
sudo pacman -Sy --noconfirm ansible
|
||||||
elif [[ $(command -v apt) ]]; then
|
elif [[ $(command -v apt) ]]; then
|
||||||
sudo apt install -y ansible python3-apt
|
sudo apt install -y ansible python3-apt
|
||||||
# ubuntu doesn't create a /usr/bin/python, so we have to make one ourselves
|
# ubuntu doesn't create a /usr/bin/python, so we have to make one ourselves
|
||||||
|
@ -16,6 +16,7 @@ elif [[ $(uname) == "Linux" ]]; then
|
||||||
sudo dnf install ansible -y
|
sudo dnf install ansible -y
|
||||||
fi
|
fi
|
||||||
elif [[ $(uname) == "Darwin" ]]; then
|
elif [[ $(uname) == "Darwin" ]]; then
|
||||||
|
# Yeah, raw brew install
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
/usr/local/bin/brew install ansible
|
/usr/local/bin/brew install ansible
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
---
|
---
|
||||||
- debug:
|
|
||||||
var: dev_machine
|
|
||||||
- import_role:
|
- import_role:
|
||||||
name: anyenv
|
name: anyenv
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
name:
|
name:
|
||||||
- build-essential
|
- build-essential
|
||||||
- cmake
|
- cmake
|
||||||
|
- libssl-dev
|
||||||
|
- pkg-config
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
# - name: Add hstr repo
|
# - name: Add hstr repo
|
||||||
|
|
Loading…
Add table
Reference in a new issue