blob: 5026631af6e0b62ada01cb09158d008bc71456b4 [file] [log] [blame]
Zack Williams8625d042016-02-26 14:32:43 -07001---
2# file: roles/common-prep/tasks/main.yml
3
Zack Williams709f11b2016-03-17 14:29:51 -07004- stat:
5 path=/var/run/reboot-required
6 register: reboot-required
7
8- name: reboot if required
9 when: reboot-required.exists is defined
10 debug: msg="System will reboot"
Zack Williamsa9421e22016-03-02 13:53:37 -070011 notify:
Zack Williams6c3b8732016-03-15 09:57:07 -070012 - restart host
13 - wait for host
Zack Williams8625d042016-02-26 14:32:43 -070014
15- name: Install standard packages
Zack Williams7ec058b2016-05-02 10:10:39 -070016 apt:
17 pkg={{ item }}
18 state=present
19 update_cache=yes
20 cache_valid_time=3600
Zack Williams8625d042016-02-26 14:32:43 -070021 with_items:
22 - tmux
23 - vim
24
Zack Williams1d8a6822016-06-08 08:33:43 -070025- name: Remove annoying default editors
26 apt:
27 pkg={{ item }}
28 state=absent
29 update_cache=yes
30 cache_valid_time=3600
31 with_items:
32 - nano
33 - jove
34
Zack Williams8625d042016-02-26 14:32:43 -070035- name: Enable vim syntax highlighting
36 lineinfile: dest=/etc/vim/vimrc
37 regexp="^\s*syntax on"
38 line="syntax on"
Zack Williamsa9421e22016-03-02 13:53:37 -070039
Zack Williamsf5d8caf2016-06-03 13:11:09 -070040- name: Configure tmux
41 copy:
42 src=tmux.conf
43 dest="{{ ansible_user_dir }}/.tmux.conf"