From e8c45f844326a526d0e8cb64eacecef237f1cf71 Mon Sep 17 00:00:00 2001
From: Bombar Maxime <bombar@crans.org>
Date: Wed, 6 May 2020 22:47:55 +0200
Subject: [PATCH] Install simple .emacs

---
 roles/deploy_config/tasks/main.yml | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/roles/deploy_config/tasks/main.yml b/roles/deploy_config/tasks/main.yml
index 17744c8..8126968 100644
--- a/roles/deploy_config/tasks/main.yml
+++ b/roles/deploy_config/tasks/main.yml
@@ -21,7 +21,7 @@
     patterns: config*
   register: ssh_config
   when: not ansible_check_mode
-  
+
 - name: Deploy ssh configuration
   file:
     src: /home/{{ ansible_user}}/Git/Config_Files/.ssh/{{ item.path | basename }}
@@ -30,14 +30,18 @@
   loop: "{{ ssh_config.files }}"
   when: not ansible_check_mode
 
-- name: Deploy general configuration
+- name: Deploy .gitconfig
   file:
-    src: /home/{{ ansible_user}}/Git/Config_Files/{{ item }}
-    dest: /home/{{ ansible_user }}/{{ item }}
+    src: /home/{{ ansible_user}}/Git/Config_Files/.gitconfig
+    dest: /home/{{ ansible_user }}/.gitconfig
+    state: link
+  when: not ansible_check_mode
+
+- name: Deploy .emacs
+  file:
+    src: /home/{{ ansible_user}}/Git/Config_Files/.emacs_simple
+    dest: /home/{{ ansible_user }}/.emacs
     state: link
-  loop:
-    - .emacs
-    - .gitconfig
   when: not ansible_check_mode
 
 - name: Deploy zsh config
-- 
GitLab