diff --git a/roles/config-base-debian-os/tasks/main.yaml b/roles/config-base-debian-os/tasks/main.yaml index 5d43fb2..d252cfd 100644 --- a/roles/config-base-debian-os/tasks/main.yaml +++ b/roles/config-base-debian-os/tasks/main.yaml @@ -249,12 +249,14 @@ mode: '0644' # step2 - add some options to the file - name: add some options to vimrc.local - blockinfile: + lineinfile: path: "{{ path_vimrclocal }}" - block: | - syntax on - set showcmd - set showmatch - set ignorecase - set smartcase + line: "{{item.line}}" + state: present + with_items: + - line: syntax on + - line: set showcmd + - line: set showmatch + - line: set ignorecase + - line: set smartcase #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file