diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-03-04 17:45:02 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-03-05 17:38:57 -0500 |
commit | b7008f070afe2629c9ebcbbdf0af3fa1f6ed9d34 (patch) | |
tree | b8f16225ad95f5692fca3d4c61c9f5f6235c732b /roles/os_env_extras | |
parent | 7c90cacef0f5cf61fb8ac3adb905507dd4247d84 (diff) | |
download | openshift-b7008f070afe2629c9ebcbbdf0af3fa1f6ed9d34.tar.gz openshift-b7008f070afe2629c9ebcbbdf0af3fa1f6ed9d34.tar.bz2 openshift-b7008f070afe2629c9ebcbbdf0af3fa1f6ed9d34.tar.xz openshift-b7008f070afe2629c9ebcbbdf0af3fa1f6ed9d34.zip |
rename base_os role to os_env_extras, move application to end since it just sets environment configs for root user
Diffstat (limited to 'roles/os_env_extras')
-rw-r--r-- | roles/os_env_extras/files/irbrc | 2 | ||||
-rw-r--r-- | roles/os_env_extras/files/vimrc | 12 | ||||
-rw-r--r-- | roles/os_env_extras/tasks/main.yaml | 17 |
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 |