mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Compare commits
No commits in common. "2b96bb254f0d5f909a71cce8d543ea42b2296412" and "c1f33aadba4ac1317c95a29128f2d6125721f71e" have entirely different histories.
2b96bb254f
...
c1f33aadba
@ -8,19 +8,19 @@
|
||||
path: "/root/.ssh/id_rsa"
|
||||
type: rsa
|
||||
size: 4096
|
||||
when: not ssh_key.stat.exists and run_once_user_root is not defined
|
||||
when: not ssh_key.stat.exists and run_once_user_administrator 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_root is not defined
|
||||
when: not ssh_key.stat.exists and run_once_user_administrator is not defined
|
||||
|
||||
- name: Output the public SSH key
|
||||
debug:
|
||||
msg: "{{ public_key.stdout }}"
|
||||
when: not ssh_key.stat.exists and run_once_user_root is not defined
|
||||
when: not ssh_key.stat.exists and run_once_user_administrator is not defined
|
||||
|
||||
- name: run the user_root tasks once
|
||||
- name: run the user_administrator tasks once
|
||||
set_fact:
|
||||
run_once_user_root: true
|
||||
when: run_once_user_root is not defined
|
||||
run_once_user_administrator: true
|
||||
when: run_once_user_administrator is not defined
|
Loading…
Reference in New Issue
Block a user