Clean unmanaged ssh keys (#36)

pending
(Baptiste Grenier) #1

Clean unmanaged ssh keys (#36)

  • ansible.cfg: should use [defaults] not [default]. Use ssh pipelining
  • community: clean non-managed ssh keys.
diff --git a/ansible.cfg b/ansible.cfg
index 67696d6..d8dc1a3 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -1,5 +1,12 @@
-[default]
+[defaults]
+# Path to inventory file
 inventory = inventory
 scp_if_ssh = True
 stdout_callback = json
+# Enable task profiling
+callback_whitelist = profile_tasks,timer
+
 [ssh_connection]
+# Improve ssh connections
+pipelining = True
+control_path = %(directory)s/ssh-%%h-%%p-%%r
diff --git a/community.egi.eu.yml b/community.egi.eu.yml
index a7a4e07..bdcc174 100644
--- a/community.egi.eu.yml
+++ b/community.egi.eu.yml
@@ -7,7 +7,7 @@
     - name: Configure remote access
       authorized_key:
         user: root
-        exclusive: false
+        exclusive: true
         key: "{{ item }}"
       loop:
         - 'https://github.com/gwarf.keys'

GitHub sha: afdac5f5