mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Cleaned up and refactored
This commit is contained in:
2
roles/client-ssh/Readme.md
Normal file
2
roles/client-ssh/Readme.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Client SSH
|
||||
Setups SSH on the client side
|
2
roles/client-ssh/meta/main.yml
Normal file
2
roles/client-ssh/meta/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- client-git
|
13
roles/client-ssh/tasks/main.yml
Normal file
13
roles/client-ssh/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: pull ssh repository from {{ssh_configuration_repository}}
|
||||
git:
|
||||
repo: "{{ssh_configuration_repository}}"
|
||||
dest: "$HOME/.ssh"
|
||||
update: yes
|
||||
register: git_result
|
||||
ignore_errors: true
|
||||
become: false
|
||||
|
||||
- name: Warn if repo is not reachable
|
||||
debug:
|
||||
msg: "Warning: Repository is not reachable."
|
||||
when: git_result.failed
|
Reference in New Issue
Block a user