summaryrefslogtreecommitdiffstats
path: root/roles/os_env_extras
diff options
context:
space:
mode:
Diffstat (limited to 'roles/os_env_extras')
-rw-r--r--roles/os_env_extras/files/irbrc2
-rw-r--r--roles/os_env_extras/files/vimrc12
-rw-r--r--roles/os_env_extras/tasks/main.yaml17
3 files changed, 31 insertions, 0 deletions
diff --git a/roles/os_env_extras/files/irbrc b/roles/os_env_extras/files/irbrc
new file mode 100644
index 000000000..47374e920
--- /dev/null
+++ b/roles/os_env_extras/files/irbrc
@@ -0,0 +1,2 @@
+require 'irb/completion'
+IRB.conf[:PROMPT_MODE] = :SIMPLE
diff --git a/roles/os_env_extras/files/vimrc b/roles/os_env_extras/files/vimrc
new file mode 100644
index 000000000..537b944ed
--- /dev/null
+++ b/roles/os_env_extras/files/vimrc
@@ -0,0 +1,12 @@
+set tabstop=4
+set shiftwidth=4
+set expandtab
+set list
+
+"flag problematic whitespace (trailing and spaces before tabs)
+"Note you get the same by doing let c_space_errors=1 but
+"this rule really applies to everything.
+highlight RedundantSpaces term=standout ctermbg=red guibg=red
+match RedundantSpaces /\s\+$\| \+\ze\t/ "\ze sets end of match so only spaces highlighted
+"use :set list! to toggle visible whitespace on/off
+set listchars=tab:>-,trail:.,extends:>
diff --git a/roles/os_env_extras/tasks/main.yaml b/roles/os_env_extras/tasks/main.yaml
new file mode 100644
index 000000000..96b12ad5b
--- /dev/null
+++ b/roles/os_env_extras/tasks/main.yaml
@@ -0,0 +1,17 @@
+---
+# environment configuration role, configures irbrc, vimrc
+
+- name: Ensure irbrc is installed for user root
+ copy:
+ src: irbrc
+ dest: /root/.irbrc
+
+- name: Ensure vimrc is installed for user root
+ copy:
+ src: vimrc
+ dest: /root/.vimrc
+
+- name: Bash Completion
+ yum:
+ pkg: bash-completion
+ state: installed