From 685cd10bf323f0512112afd5752fed17dc0a81d0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 4 Jan 2024 00:18:46 +0100 Subject: [PATCH] renamed variable --- roles/user-root/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/user-root/tasks/main.yml b/roles/user-root/tasks/main.yml index 77550134..046d5fa5 100644 --- a/roles/user-root/tasks/main.yml +++ b/roles/user-root/tasks/main.yml @@ -8,19 +8,19 @@ path: "/root/.ssh/id_rsa" type: rsa size: 4096 - when: not ssh_key.stat.exists and run_once_user_administrator is not defined + when: not ssh_key.stat.exists and run_once_user_root is not defined - name: Display the public SSH key command: cat /root/.ssh/id_rsa.pub register: public_key - when: not ssh_key.stat.exists and run_once_user_administrator is not defined + when: not ssh_key.stat.exists and run_once_user_root is not defined - name: Output the public SSH key debug: msg: "{{ public_key.stdout }}" - when: not ssh_key.stat.exists and run_once_user_administrator is not defined + when: not ssh_key.stat.exists and run_once_user_root is not defined -- name: run the user_administrator tasks once +- name: run the user_root tasks once set_fact: - run_once_user_administrator: true - when: run_once_user_administrator is not defined \ No newline at end of file + run_once_user_root: true + when: run_once_user_root is not defined \ No newline at end of file