Use the vimrc from env-shared.
This commit is contained in:
@@ -1224,31 +1224,6 @@
|
|||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: user_root.home != "" and user_user.home != ""
|
when: user_root.home != "" and user_user.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | .vimrc
|
|
||||||
blockinfile:
|
|
||||||
path: "{{ item }}/.vimrc"
|
|
||||||
block: |
|
|
||||||
" Turn off syntax, flashy lights, etc. Make VIM into a basic editor.
|
|
||||||
syntax off
|
|
||||||
set nohlsearch
|
|
||||||
set noautoindent noautowrite noshowmatch wrapmargin=0 report=1 ts=3
|
|
||||||
set ignorecase
|
|
||||||
|
|
||||||
" Turn off auto-commenting.
|
|
||||||
autocmd Filetype * set fo-=c fo-=r fo-=o
|
|
||||||
|
|
||||||
" qq shortcut for immediately exiting all files without saving.
|
|
||||||
nnoremap qq :qa!<cr>
|
|
||||||
marker: '" {mark} MANAGED BY ANSIBLE | vimrc'
|
|
||||||
state: present
|
|
||||||
create: yes
|
|
||||||
backup: yes
|
|
||||||
loop:
|
|
||||||
- "{{ user_root.home }}"
|
|
||||||
- "{{ user_user.home }}"
|
|
||||||
ignore_errors: yes
|
|
||||||
when: user_root.home != "" and user_user.home != ""
|
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | Ownership
|
- name: General | Account Management | Users | Files | Ownership
|
||||||
file:
|
file:
|
||||||
path: "{{ user_user.home }}/{{ item }}"
|
path: "{{ user_user.home }}/{{ item }}"
|
||||||
@@ -1257,7 +1232,6 @@
|
|||||||
loop:
|
loop:
|
||||||
- .bashrc
|
- .bashrc
|
||||||
- .zshrc
|
- .zshrc
|
||||||
- .vimrc
|
|
||||||
|
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | Helper Functions (Reset)
|
- name: General | Account Management | Users | Files | Helper Functions (Reset)
|
||||||
@@ -1285,7 +1259,7 @@
|
|||||||
update: true
|
update: true
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: General | Account Management | Users | env-shared | Install | rc_shared
|
- name: General | Account Management | Users | env-shared | Install | .rc_shared
|
||||||
copy:
|
copy:
|
||||||
src: "{{ shared_rc_install_dir }}/rc_shared.sh"
|
src: "{{ shared_rc_install_dir }}/rc_shared.sh"
|
||||||
dest: "{{ item }}/.rc_shared"
|
dest: "{{ item }}/.rc_shared"
|
||||||
@@ -1298,6 +1272,19 @@
|
|||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: user_root.home != "" and user_user.home != ""
|
when: user_root.home != "" and user_user.home != ""
|
||||||
|
|
||||||
|
- name: General | Account Management | Users | env-shared | Install | .vimrc
|
||||||
|
copy:
|
||||||
|
src: "{{ shared_rc_install_dir }}/vimrc.vim"
|
||||||
|
dest: "{{ item }}/.vimrc"
|
||||||
|
owner: root
|
||||||
|
group: "{{ root_group }}"
|
||||||
|
mode: 0755
|
||||||
|
loop:
|
||||||
|
- "{{ user_root.home }}"
|
||||||
|
- "{{ user_user.home }}"
|
||||||
|
ignore_errors: yes
|
||||||
|
when: user_root.home != "" and user_user.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | Users | env-shared | Permissions
|
- name: General | Account Management | Users | env-shared | Permissions
|
||||||
file:
|
file:
|
||||||
path: "{{ user_user.home }}/{{ item }}"
|
path: "{{ user_user.home }}/{{ item }}"
|
||||||
@@ -1305,4 +1292,5 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
loop:
|
loop:
|
||||||
- .rc_shared
|
- .rc_shared
|
||||||
|
- .vimrc
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user