summaryrefslogtreecommitdiffstats
path: root/.ansible/personalised.yml
diff options
context:
space:
mode:
Diffstat (limited to '.ansible/personalised.yml')
-rw-r--r--.ansible/personalised.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.ansible/personalised.yml b/.ansible/personalised.yml
new file mode 100644
index 0000000..3db2bc7
--- /dev/null
+++ b/.ansible/personalised.yml
@@ -0,0 +1,19 @@
+- hosts: personalised
+ tasks:
+ - name: Ensure emacs is installed on CentOS
+ become: yes
+ yum:
+ name: emacs-nox
+ state: latest
+ when: ansible_os_family == "RedHat"
+ - name: Ensure emacs is installed on Debian
+ become: yes
+ apt:
+ name: emacs25-nox
+ state: latest
+ when: ansible_os_family == "Debian"
+ - name: Set emacs as EDITOR for myself
+ lineinfile:
+ path: ~/.profile
+ regexp: '^export EDITOR='
+ line: 'export EDITOR=emacs'