ansible: remove frdeso ssh key from nodes
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 26 Jul 2022 15:13:59 +0000 (11:13 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 26 Jul 2022 15:13:59 +0000 (11:13 -0400)
Change-Id: I70ca5c247122258904c827c13d2c0f8f605d6e68

automation/ansible/roles/common/public_keys/frdeso.pub [deleted file]
automation/ansible/roles/common/tasks/main.yml

diff --git a/automation/ansible/roles/common/public_keys/frdeso.pub b/automation/ansible/roles/common/public_keys/frdeso.pub
deleted file mode 100644 (file)
index f23b140..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDC06no7kHoEh/8w5tEyLP+Qj3iGCNkxTbfhDkJ04R6coNMuicrJKRvvwG+N/L090krpEJ3UiLc79BCLZqqfJRD983yNsTzwcqa6ZswRlkrL+Wq4FKe5XT28zM7m6whclZH33lFKSroxII92FDy5ZfrmiWYIrhur+sncHUOPct9i9w9sPLBMPAQ7IkWM+yNV2QCoSEABjAudtJbi6Ndba4PFEbM3NJsMJSVFlI+1Vy3fad+Yye5kcDMiuMN+ea/I4lslwHfImIbpQ2rX/7NA4ulkczz1wtZsXL/oCWu/ewpiD6EiekB3pIg4oPG7iEuW3y43nHntbDaEMIxSA7+WBv frdeso@raton
index 68ac041b89fe08618df78f372737ad69883fd2a7..1a4895f12fc62df9e4f653366ae57c9173c4add5 100644 (file)
 - name: Set up authorized_keys for the root user
   authorized_key:
     user: 'root'
-    key: '{{ item }}'
-  with_file:
-    - public_keys/mjeanson.pub
-    - public_keys/joraj.pub
-    - public_keys/jgalar.pub
-    - public_keys/frdeso.pub
-    - public_keys/mdesnoyers.pub
-    - public_keys/smarchi.pub
-    - public_keys/pproulx.pub
+    key: "{% for key in query('fileglob', 'public_keys/*.pub') %}{{ lookup('file', key) ~ '\n'}}{% endfor %}"
+    exclusive: true
 
 - name: Remove ubuntu user
   user:
This page took 0.023538 seconds and 4 git commands to generate.