-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesktop.yml
47 lines (47 loc) · 1.66 KB
/
desktop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- hosts: nuevo
user: xir
become: True
vars:
- ansible_become_pass: yourpass
tasks:
- name: update all packages
apt: update_cache=yes upgrade=dist
- name: set timezone
command: cp /usr/share/zoneinfo/Europe/Madrid /etc/localtime
# install usefull packages
- name: install virtualbox key
apt_key: state=present url=https://www.virtualbox.org/download/oracle_vbox.asc
- name: install virtualbox repo
apt_repository: update_cache=yes state=present repo="deb http://download.virtualbox.org/virtualbox/debian trusty contrib"
- name: apt files
apt: pkg={{ item }} state=latest
with_items:
- screen
- terminator
- git
- vim
- python-apt
- dkms
- virtualbox-5.0
- android-tools-adb
- name: remove unuseful packages
apt: pkg={{ item }} state=absent
with_items:
- nano
# Installs old apt's version for pip
- name: install python pip
apt: pkg=python-pip state=latest
# Updates pip to latest version
- name: update pip
pip: name=pip state=latest
- name: configure terminal
git: clone=yes repo="https://github.com/ieguiguren/dotfiles.git" dest="/home/xir/dotfiles"
- name: create links
command: ln -sb {{ item }} . chdir="/home/xir/"
with_items:
- "dotfiles/.bash_profile"
- "dotfiles/.bashrc"
- "dotfiles/.bashrc_custom"
- "dotfiles/.bash_aliases"
- "dotfiles/.vimrc"