ansible_roles_rework #2

Merged
anthonycicc merged 9 commits from ansible_roles_rework into master 2019-07-30 21:27:14 -04:00
3 changed files with 4 additions and 3 deletions
Showing only changes of commit 7455446c43 - Show all commits

View file

@ -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

View file

@ -1,6 +1,4 @@
--- ---
- debug:
var: dev_machine
- import_role: - import_role:
name: anyenv name: anyenv
when: when:

View file

@ -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