]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Add cobbler SSH keys from secrets repo
authorZack Cerza <zack@redhat.com>
Thu, 4 Jun 2015 20:50:07 +0000 (14:50 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 29 Jun 2015 22:37:05 +0000 (16:37 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler/tasks/main.yml

index 42a5e7c5927a0f1a6693acbed9730972dced83fe..bb35e13221eee06a5f189cd149f6ef8f1a89ebd2 100644 (file)
@@ -1,4 +1,15 @@
 ---
+- name: Include cobbler keys.
+  include_vars: "{{ secrets_path | mandatory }}/cobbler_keys.yml"
+  no_log: true
+  tags:
+    - vars
+
+- name: Write cobbler keys
+  copy: content="{{ item.data }}" dest="{{ item.path }}" mode=600
+  with_items: cobbler_keys["{{ ansible_hostname}}"]
+  no_log: true
+
 - name: Include package type specific vars.
   include_vars: "{{ ansible_pkg_mgr }}_systems.yml"
 
@@ -18,7 +29,6 @@
 
 # TODO populate systems
 
-# FIXME put keypair in ~root to get the secrets repo
 - include: fetch_cm_repos.yml
   tags:
    - cm_repos