1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00

improve install.sh

This commit is contained in:
eoli3n 2017-12-19 01:08:41 +01:00
parent e9f1e91954
commit 99e1078451
5 changed files with 14 additions and 71 deletions

@ -15,9 +15,19 @@ then
exit 1
fi
echo "### DRYRUN #################################################################"
echo "### LIST TASKS #################################################################"
ansible-playbook -i "localhost," -c local install.yml --ask-become-pass -CD -t $1
ansible-playbook -i "localhost," -c local install.yml --list-tasks -t desktop | grep TAGS | egrep -v 'play|debug|include_role' | sed 's/\ *\(.*\)TAGS.*$/\1/'
echo "Do you want to dryrun ? (Y/n)"
read ok
ok=${ok:-Y}
if [[ "$ok" == "Y" ]]
then
echo "### DRYRUN ###################################################################"
ansible-playbook -i "localhost," -c local install.yml --ask-become-pass -CD -t $1
fi
echo "Do you want to install ? (Y/n)"
read ok

@ -3,7 +3,7 @@
tags: [ 'server', 'laptop', 'desktop' ]
roles:
- { role: packages, tags: packages }
- { role: packages-common, tags: packages-common }
- { role: zsh, tags: zsh }
- { role: vim, tags: vim }
- { role: terminfo, tags: terminfo }
@ -14,6 +14,7 @@
tags: [ 'desktop', 'laptop' ]
roles:
- { role: packages-desktop, tags: packages-desktop }
- { role: cursor, tags: cursor }
- { role: i3-wm, tags: i3-wm }
- { role: compton, tags: compton }

@ -1,28 +0,0 @@
---
- name: Install common packages
package: name={{item}} state=present
with_items:
- curl
- wget
- pygmentize
become: True
- name: Install common packages (Archlinux)
pacman: name={{item}} state=present
with_items:
- expac
- jshon
when: ansible_os_family == "Archlinux"
become: True
- name: Install cower on Archlinux
shell: creates=/usr/bin/cower curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower; makepkg PKGBUILD --skippgpcheck --install --needed --noconfirm
when: ansible_os_family == "Archlinux"
- name: Install pacaur on Archlinux
shell: creates=/usr/bin/pacaur curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur; makepkg PKGBUILD --install --needed --noconfirm
when: ansible_os_family == "Archlinux"
- name: Install packer on Archlinux
shell: creates=/usr/bin/packer curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer-git; makepkg PKGBUILD --install --needed --noconfirm
when: ansible_os_family == "Archlinux"

@ -1,28 +0,0 @@
---
- name: Install Desktop packages
package: name={{item}} state=present
with_items:
- xorg-server
- xorg-xinit
- lxappearance
- slop
- maim
- feh
- xclip
- xorg-xrdb
- xorg-xfd
- connman
- geary
- ttf-hack
become: True
- name: Install Desktop packages (Archlinux)
packer: name={{item}} state=present
with_items:
- google-chrome
- connman-gtk
- gnome-ssh-askpass2
- ttf-font-awesome
- ttf-unifont
- ttf-font-icons
when: ansible_os_family == "Archlinux"

@ -1,12 +0,0 @@
---
- import_tasks: common.yml
tags: [ 'desktop', 'laptop', 'server' ]
- import_tasks: desktop.yml
tags: [ 'desktop', 'laptop' ]
#- import_tasks: laptop.yml
# tags: laptop
#- import_tasks: server.yml
# tags: server