ansible-role--vim/tasks/vimrc.yml
2016-05-02 21:31:01 +02:00

32 lines
697 B
YAML

- file:
path=~/tmp
state=directory
- template: >
src=templates/vimrc.j2
dest=~/.vimrc
owner="{{item}}"
group="{{item}}"
mode=0644
become: true
become_user: "{{item}}"
with_items: "{{vimrc_users}}"
# - lineinfile: >
# dest=~/.vimrc
# regexp="{{vimrc_boundary_begin_regexp}}"
# line="{{vimrc_boundary_begin}}"
# create=yes
# become: true
# become_user: "{{item}}"
# with_items: vimrc_users
#
# - lineinfile: >
# dest=~/.vimrc
# regexp="{{vimrc_boundary_end_regexp}}"
# insertafter="{{vimrc_boundary_begin_regexp}}"
# line="{{vimrc_boundary_end}}"
# become: true
# become_user: "{{item}}"
# with_items: vimrc_users
#