[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-cloud/master] common: Disable Vim mouse capture



commit d5611e8fc017f38a282075679683305048ae6c24
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Tue Oct 1 13:42:53 2019 +0100

    common: Disable Vim mouse capture
---
 ansible/common.yml                     | 5 +++++
 ansible/roles/sanity/files/vimrc.local | 2 ++
 ansible/roles/sanity/tasks/main.yml    | 7 +++++++
 ansible/site.yml                       | 1 +
 4 files changed, 15 insertions(+)

diff --git a/ansible/common.yml b/ansible/common.yml
new file mode 100644
index 0000000..6ab3711
--- /dev/null
+++ b/ansible/common.yml
@@ -0,0 +1,5 @@
+---
+- hosts: all
+  user: admin
+  roles:
+    - sanity
diff --git a/ansible/roles/sanity/files/vimrc.local b/ansible/roles/sanity/files/vimrc.local
new file mode 100644
index 0000000..afd5ae0
--- /dev/null
+++ b/ansible/roles/sanity/files/vimrc.local
@@ -0,0 +1,2 @@
+let g:skip_defaults_vim = 1
+set mouse=
diff --git a/ansible/roles/sanity/tasks/main.yml b/ansible/roles/sanity/tasks/main.yml
new file mode 100644
index 0000000..73d7c59
--- /dev/null
+++ b/ansible/roles/sanity/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+- name: install vim defaults
+  become: true
+  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
+  copy:
+    src: vimrc.local
+    dest: /etc/vim/vimrc.local
diff --git a/ansible/site.yml b/ansible/site.yml
index 6c14f73..8691e42 100644
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -1,3 +1,4 @@
 ---
+- import_playbook: common.yml
 - import_playbook: monitors.yml
 - import_playbook: onionperfs.yml

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits