summaryrefslogtreecommitdiffstats
path: root/.ansible/personalised.yml
blob: 3db2bc7d306f3b53e4f063cb316aaf5d8b11b609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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'