mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-03 19:58:14 +00:00 
			
		
		
		
	renamed variable
This commit is contained in:
		@@ -8,19 +8,19 @@
 | 
				
			|||||||
    path: "/root/.ssh/id_rsa"
 | 
					    path: "/root/.ssh/id_rsa"
 | 
				
			||||||
    type: rsa
 | 
					    type: rsa
 | 
				
			||||||
    size: 4096
 | 
					    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
 | 
					- name: Display the public SSH key
 | 
				
			||||||
  command: cat /root/.ssh/id_rsa.pub
 | 
					  command: cat /root/.ssh/id_rsa.pub
 | 
				
			||||||
  register: public_key
 | 
					  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
 | 
					- name: Output the public SSH key
 | 
				
			||||||
  debug:
 | 
					  debug:
 | 
				
			||||||
    msg: "{{ public_key.stdout }}"
 | 
					    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:
 | 
					  set_fact:
 | 
				
			||||||
    run_once_user_administrator: true
 | 
					    run_once_user_root: true
 | 
				
			||||||
  when: run_once_user_administrator is not defined
 | 
					  when: run_once_user_root is not defined
 | 
				
			||||||
		Reference in New Issue
	
	Block a user