summaryrefslogtreecommitdiffstats
path: root/.ansible/personalised.yml
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2018-06-10 11:55:30 +0300
committerdefanor <defanor@uberspace.net>2018-06-10 11:55:30 +0300
commit4df5ce21ffbbacaf5c931174c5a6be8778641f6b (patch)
treeefbd20aca4a4281c726f594234ae8100bd9a7534 /.ansible/personalised.yml
parent9c34c4957728363e9d81f5684df18d26cc3727c0 (diff)
downloaddefanor-dotfiles-4df5ce21ffbbacaf5c931174c5a6be8778641f6b.zip
defanor-dotfiles-4df5ce21ffbbacaf5c931174c5a6be8778641f6b.tar.gz
defanor-dotfiles-4df5ce21ffbbacaf5c931174c5a6be8778641f6b.tar.bz2
Add ansible configurationHEADmaster
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'