OpenSuSE Tumbleweed

This commit is contained in:
Anthony Cicchetti 2019-08-31 16:39:20 -04:00
parent 9b24b192e5
commit 75921dd171
5 changed files with 63 additions and 0 deletions

View file

@ -8,6 +8,10 @@ if [[ $(command -v ansible) ]]; then
elif [[ $(uname) == "Linux" ]]; then
if [[ $(command -v pacman) ]]; then
sudo pacman -Sy --noconfirm ansible
elif [[ $(command -v zypper) ]]; then
sudo zypper -y install ansible
sudo zypper addrepo -f http://download.opensuse.org/repositories/home:/tuw-e184/openSUSE_Tumbleweed/home:tuw-e184.repo
sudo ln -sf /usr/bin/python3 /usr/bin/python
elif [[ $(command -v apt) ]]; then
sudo apt install -y ansible python3-apt
# ubuntu doesn't create a /usr/bin/python, so we have to make one ourselves

View file

@ -52,3 +52,15 @@
vars:
- dev_machine: "{{ _dev_machine }}"
- rust_extras: "{{ _rust_extras }}"
- hosts: os_openSUSE*
gather_facts: True
roles:
- role: opensuse
vars:
dev_machine: "{{ _dev_machine }}"
- role: common
vars:
- dev_machine: "{{ _dev_machine }}"
- rust_extras: "{{ _rust_extras }}"

View file

@ -9,4 +9,5 @@
src: "$HOME/.dotfiles/alacritty/alacritty.yml"
dest: "$HOME/.config/alacritty/alacritty.yml"
state: link
force: yes

View file

@ -0,0 +1,2 @@
---
dev_machine: yes

View file

@ -0,0 +1,44 @@
---
- name: Update Packages
become: yes
become_method: sudo
zypper:
name: "*"
state: latest
- name: Install basics
become: yes
become_method: sudo
zypper:
name:
- zsh
- git
- cmake
- tmux
- gpg
- neovim
- hstr
state: latest
- name: Install devel_*
when:
- dev_machine == true
become: yes
become_method: sudo
zypper:
name:
- "devel_basis"
- "devel_C_C++"
state: latest
type: pattern
- name: Install other devel packages
when:
- dev_machine == true
become: yes
become_method: sudo
zypper:
name:
- clang
- libopenssl-devel
state: latest