Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: install on desktop
- sudo: yes
- hosts: all
- # an ansible script for setting up a machine
- tasks:
- # this does not work on linux mint
- - name: add local ppas
- apt_repository: repo='{{item}}' update_cache=yes
- with_items:
- - ppa:atareao/atareao
- - ppa:thebernmeister/ppa
- - ppa:nilarimogard/webupd8
- - ppa:longsleep/golang-backports
- - ppa:yktooo/ppa
- - ppa:umang/indicator-stickynotes
- - ppa:jtaylor/keepass
- - ppa:unit193/encryption
- - ppa:gophers/archive
- - name: update apt
- apt: update_cache=yes
- - name: install environment packages
- apt: pkg={{item}} state=latest
- with_items:
- - apache2-utils
- - bc
- - build-essential
- - cccache
- - chromium-browser
- - cifs-utils
- - cinnamon-control-center
- - claws-mail
- - claws-mail-extra-plugins
- - cmake
- - culmus
- - default-jdk
- - dmenu
- - docker.io
- - dos2unix
- - exuberant-ctags
- - fail2ban
- - feh
- - firefox
- - fonts-font-awesome
- - golang-1.12-go
- - gdebi-core
- - git
- - gnome-screensaver
- - golang-1.10-go
- - guake
- - gvim
- - hexchat
- - indicator-sound-switcher
- - jq
- - keepass2
- - libcairo2-dev
- - libcurl4-ssl-dev
- - libgeoip-dev
- - libiw-dev
- - libmpdclient-dev
- - libmysqlclient-dev
- - libnetfilter-queue-dev
- - libpcap-dev
- - libpulse-dev
- - libreoffice
- - libreoffice-script-provider-python
- - libsqlite3-dev
- - libxcb-composite0-dev
- - libxcb-ewmh-dev
- - libxcb-icccm4-dev
- - libxcb-image0-dev
- - libxcb-randr0-dev
- - libxcb-util0-dev
- - libxcb1
- - libxml2-dev
- - libxslt1-dev
- - mailutils
- - msttcorefonts
- - mysql-client
- - nfs-common
- - nfs-kernel-server
- - nitrogen
- - nmap
- - notify-osd
- - openjdk-8-jdk
- - orage
- - pavucontrol
- - pcmanfm
- - protobuf-compiler
- - python-dev
- - python-jedi
- - python-pdfminer
- - python-pip
- - python-software-properties
- - python-xcbgen
- - python3-jedi
- - python3-pip
- - python3-venv
- - redis-tools
- - redshift
- - retext
- - rofi
- - software-properties-common
- - sqlite3
- - sshpass
- - steam
- - suckless-tools
- - telnet
- - terminator
- - thunderbird
- - veracrypt
- - vim
- - vim-python-jedi
- - virtualbox
- - vlc
- - wine
- - xautolock
- - xcb-proto
- - xchat
- - xchat-gnome
- - xclip
- - xfonts-efont-unicode
- - xfonts-efont-unicode-ib
- - xfonts-intl-european
- - youtube-dl
- - zip
- - name: keep packages off system
- apt: state=absent pkg={{item}}
- with_items:
- - nemo
- - nautilus
- - name: upgrade things to latest
- pip: name={{item}} state=latest
- with_items:
- - ansible
- - awscli
- - s3cmd
- - py3status
- - name: install system wide python things
- with_items:
- - pip
- - poetry
- - name: install nodejs
- shell: curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- - name: install calibre
- shell: sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
- - name: make opt binary tree
- file: state=directory path=/opt/{{item}} owner=chayim group=chayim
- with_items:
- - bin
- - terraform
- - packer
- - Trello
- - name: install elasticdump
- command: npm install elasticdump chdir=/opt/elasticdump
- - name: link elasticdump
- file: state=link src=/opt/elasticdump/node_modules/elasticdump/bin/elasticdump
- dest=/opt/bin/elasticdump
- - name: let the user know
- debug: msg="You need to manually fetch and install {{item}}"
- with_items:
- - Spotify
- - Trello
- - Terraform
- - Packer
- - VSCode
- - Postman
- - xmind6
- - vagrant
- - Signal
- - masterpdf
- - apache jmeter
- - MineTime
- - name: install snaps
- snap: name={{item}} state=present
- with_items:
- - go
- - skype
- - spotify
- - ramboxpro
- - postman
- - dbeaver-ce
- - vscode
- - terraform
- - vagrant
- - master-pdf-editor
- - node
- - name: check git_lfs exists
- stat: path=/usr/local/bin/git-lfs
- register: git_lfs_exists
- - name: git lfs time
- get_url: dest=/tmp/git-lfs.tgz url="https://github.com/git-lfs/git-lfs/releases/download/v2.1.0/git-lfs-linux-amd64-2.1.0.tar.gz"
- register: git_lfs
- when: git_lfs_exists.stat.exists is False
- - name: untar git-lfs
- command: tar -zxpf git-lfs.tgz chdir=/tmp
- when: git_lfs.changed
- - name: install git_lfs
- command: sh ./install.sh chdir=/tmp/git-lfs-2.1.0
- when: git_lfs_exists.stat.exists is False
- - name: let the user know
- debug: msg="You need to manually fetch and install {{item}}"
- with_items:
- - insync
- - name: install spideroak
- apt: deb="https://spideroak.com/getbuild?platform=ubuntu&arch=x86_64"
- - name: Add key to the apt list
- apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=BBEBDCB318AD50EC6865090613B00F1FD2C19886 state=present
- - name: Add repo to apt list
- shell: echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
- - name: Apt Install
- apt: pkg=spotify-client update_cache=yes state=present
- - name: install tagspaces
- apt: deb=https://www.tagspaces.org/downloads/tagspaces-amd64.deb state=installed
- # i3 things
- - name: install i3 things
- apt: pkg={{item}} state=latest
- with_items:
- - scrot
- - imagemagick
- - i3lock
- - i3status
- - i3
- - name: install nodejs legacy link
- apt: pkg=nodejs-legacy state=latest
- - name: packages for neomutt
- apt: pkg={{item}} state=latest
- with_items:
- - pass
- - urlview
- - libnotify-bin
- - w3m
- - abook
- - offlineimap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement