Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.61 KB | None | 0 0
  1. ---
  2.  
  3. - name: install on desktop
  4. sudo: yes
  5. hosts: all
  6.  
  7. # an ansible script for setting up a machine
  8. tasks:
  9.  
  10. # this does not work on linux mint
  11. - name: add local ppas
  12. apt_repository: repo='{{item}}' update_cache=yes
  13. with_items:
  14. - ppa:atareao/atareao
  15. - ppa:thebernmeister/ppa
  16. - ppa:nilarimogard/webupd8
  17. - ppa:longsleep/golang-backports
  18. - ppa:yktooo/ppa
  19. - ppa:umang/indicator-stickynotes
  20. - ppa:jtaylor/keepass
  21. - ppa:unit193/encryption
  22. - ppa:gophers/archive
  23.  
  24. - name: update apt
  25. apt: update_cache=yes
  26.  
  27. - name: install environment packages
  28. apt: pkg={{item}} state=latest
  29. with_items:
  30. - apache2-utils
  31. - bc
  32. - build-essential
  33. - cccache
  34. - chromium-browser
  35. - cifs-utils
  36. - cinnamon-control-center
  37. - claws-mail
  38. - claws-mail-extra-plugins
  39. - cmake
  40. - culmus
  41. - default-jdk
  42. - dmenu
  43. - docker.io
  44. - dos2unix
  45. - exuberant-ctags
  46. - fail2ban
  47. - feh
  48. - firefox
  49. - fonts-font-awesome
  50. - golang-1.12-go
  51. - gdebi-core
  52. - git
  53. - gnome-screensaver
  54. - golang-1.10-go
  55. - guake
  56. - gvim
  57. - hexchat
  58. - indicator-sound-switcher
  59. - jq
  60. - keepass2
  61. - libcairo2-dev
  62. - libcurl4-ssl-dev
  63. - libgeoip-dev
  64. - libiw-dev
  65. - libmpdclient-dev
  66. - libmysqlclient-dev
  67. - libnetfilter-queue-dev
  68. - libpcap-dev
  69. - libpulse-dev
  70. - libreoffice
  71. - libreoffice-script-provider-python
  72. - libsqlite3-dev
  73. - libxcb-composite0-dev
  74. - libxcb-ewmh-dev
  75. - libxcb-icccm4-dev
  76. - libxcb-image0-dev
  77. - libxcb-randr0-dev
  78. - libxcb-util0-dev
  79. - libxcb1
  80. - libxml2-dev
  81. - libxslt1-dev
  82. - mailutils
  83. - msttcorefonts
  84. - mysql-client
  85. - nfs-common
  86. - nfs-kernel-server
  87. - nitrogen
  88. - nmap
  89. - notify-osd
  90. - openjdk-8-jdk
  91. - orage
  92. - pavucontrol
  93. - pcmanfm
  94. - protobuf-compiler
  95. - python-dev
  96. - python-jedi
  97. - python-pdfminer
  98. - python-pip
  99. - python-software-properties
  100. - python-xcbgen
  101. - python3-jedi
  102. - python3-pip
  103. - python3-venv
  104. - redis-tools
  105. - redshift
  106. - retext
  107. - rofi
  108. - software-properties-common
  109. - sqlite3
  110. - sshpass
  111. - steam
  112. - suckless-tools
  113. - telnet
  114. - terminator
  115. - thunderbird
  116. - veracrypt
  117. - vim
  118. - vim-python-jedi
  119. - virtualbox
  120. - vlc
  121. - wine
  122. - xautolock
  123. - xcb-proto
  124. - xchat
  125. - xchat-gnome
  126. - xclip
  127. - xfonts-efont-unicode
  128. - xfonts-efont-unicode-ib
  129. - xfonts-intl-european
  130. - youtube-dl
  131. - zip
  132.  
  133.  
  134. - name: keep packages off system
  135. apt: state=absent pkg={{item}}
  136. with_items:
  137. - nemo
  138. - nautilus
  139.  
  140. - name: upgrade things to latest
  141. pip: name={{item}} state=latest
  142. with_items:
  143. - ansible
  144. - awscli
  145. - s3cmd
  146. - py3status
  147.  
  148. - name: install system wide python things
  149. with_items:
  150. - pip
  151. - poetry
  152.  
  153. - name: install nodejs
  154. shell: curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
  155.  
  156. - name: install calibre
  157. 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()"
  158.  
  159. - name: make opt binary tree
  160. file: state=directory path=/opt/{{item}} owner=chayim group=chayim
  161. with_items:
  162. - bin
  163. - terraform
  164. - packer
  165. - Trello
  166.  
  167. - name: install elasticdump
  168. command: npm install elasticdump chdir=/opt/elasticdump
  169.  
  170. - name: link elasticdump
  171. file: state=link src=/opt/elasticdump/node_modules/elasticdump/bin/elasticdump
  172. dest=/opt/bin/elasticdump
  173.  
  174. - name: let the user know
  175. debug: msg="You need to manually fetch and install {{item}}"
  176. with_items:
  177. - Spotify
  178. - Trello
  179. - Terraform
  180. - Packer
  181. - VSCode
  182. - Postman
  183. - xmind6
  184. - vagrant
  185. - Signal
  186. - masterpdf
  187. - apache jmeter
  188. - MineTime
  189.  
  190. - name: install snaps
  191. snap: name={{item}} state=present
  192. with_items:
  193. - go
  194. - skype
  195. - spotify
  196. - ramboxpro
  197. - postman
  198. - dbeaver-ce
  199. - vscode
  200. - terraform
  201. - vagrant
  202. - master-pdf-editor
  203. - node
  204.  
  205. - name: check git_lfs exists
  206. stat: path=/usr/local/bin/git-lfs
  207. register: git_lfs_exists
  208.  
  209. - name: git lfs time
  210. 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"
  211. register: git_lfs
  212. when: git_lfs_exists.stat.exists is False
  213.  
  214. - name: untar git-lfs
  215. command: tar -zxpf git-lfs.tgz chdir=/tmp
  216. when: git_lfs.changed
  217.  
  218. - name: install git_lfs
  219. command: sh ./install.sh chdir=/tmp/git-lfs-2.1.0
  220. when: git_lfs_exists.stat.exists is False
  221.  
  222. - name: let the user know
  223. debug: msg="You need to manually fetch and install {{item}}"
  224. with_items:
  225. - insync
  226.  
  227. - name: install spideroak
  228. apt: deb="https://spideroak.com/getbuild?platform=ubuntu&arch=x86_64"
  229.  
  230. - name: Add key to the apt list
  231. apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=BBEBDCB318AD50EC6865090613B00F1FD2C19886 state=present
  232.  
  233. - name: Add repo to apt list
  234. shell: echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
  235.  
  236. - name: Apt Install
  237. apt: pkg=spotify-client update_cache=yes state=present
  238.  
  239. - name: install tagspaces
  240. apt: deb=https://www.tagspaces.org/downloads/tagspaces-amd64.deb state=installed
  241.  
  242. # i3 things
  243. - name: install i3 things
  244. apt: pkg={{item}} state=latest
  245. with_items:
  246. - scrot
  247. - imagemagick
  248. - i3lock
  249. - i3status
  250. - i3
  251.  
  252. - name: install nodejs legacy link
  253. apt: pkg=nodejs-legacy state=latest
  254.  
  255. - name: packages for neomutt
  256. apt: pkg={{item}} state=latest
  257. with_items:
  258. - pass
  259. - urlview
  260. - libnotify-bin
  261. - w3m
  262. - abook
  263. - offlineimap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement