From 27cdfbd47c66a7015ea201a2980e72852b5b0638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de> Date: Fri, 3 Sep 2021 13:34:35 +0200 Subject: [PATCH] feat: provide SSH-Key for Sanity Test user --- tasks/configure_sanitytest.yml | 7 +++++++ tasks/main.yml | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 tasks/configure_sanitytest.yml diff --git a/tasks/configure_sanitytest.yml b/tasks/configure_sanitytest.yml new file mode 100644 index 0000000..532b293 --- /dev/null +++ b/tasks/configure_sanitytest.yml @@ -0,0 +1,7 @@ +--- +- name: install sanitytest SSH key + ansible.posix.authorized_key: + comment: "{{ vault_sanitytest_user.comment }}" + key: "{{ vault_sanitytest_user.sshkey }}" + user: "{{ vault_sanitytest_user.name }}" + diff --git a/tasks/main.yml b/tasks/main.yml index 30f4ab1..63ced46 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,6 +7,7 @@ - "nfs_shares.vault" - "oracle.vault" - "rosetta.vault" + - "sanitytest.vault" tags: [always] ### COMMON TASKS @@ -17,6 +18,8 @@ tags: [yum, packages] - import_tasks: create_users.yml tags: [users] +- import_tasks: "configure_sanitytest.yml" + tags: [users, sanitytest] - import_tasks: configure_nfs_mounts.yml tags: [mount, nfs] - import_tasks: install_checkmk_plugins.yml -- GitLab