Skip to content

Commit e6233de

Browse files
committed
feat: add openssh-client role
1 parent 456626b commit e6233de

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This Ansible collection provides a set of roles designed for configuring Kubuntu
1414
| `xebis.ansible.google_chrome` | Google Chrome (Stable) | `xebis.ansible.apt` |
1515
| [xebis.ansible.nftables_firewall](roles/nftables_firewall/README.md) | nftables firewall | `xebis.ansible.apt` |
1616
| `xebis.ansible.obsidian` | Obsidian | `xebis.ansible.snapd` |
17+
| `xebis.ansible.openssh_client` | Installs OpenSSH client and generates SSH key pair. | `xebis.ansible.apt` |
1718
| `xebis.ansible.openssh_server` | Installs OpenSSH server and provides `Restart ssh` handler. | `xebis.ansible.apt` |
1819
| `xebis.ansible.snapd` | Snap daemon | `xebis.ansible.apt` |
1920
| [xebis.ansible.system](roles/system/README.md) | System-related tasks such as reboot handler or reboot when required handler. | |

roles/openssh_client/meta/main.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
dependencies:
3+
- role: xebis.ansible.apt # Expects updated apt cache

roles/openssh_client/tasks/main.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- name: Install OpenSSH client
3+
become: true
4+
ansible.builtin.apt:
5+
name: openssh-client
6+
state: present
7+
8+
- name: Create SSH keys
9+
community.crypto.openssh_keypair:
10+
path: ~/.ssh/id_rsa
11+
comment: "{{ ansible_user_id }}@{{ ansible_hostname }}.xeb.is"
12+
state: present

test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131
- https://github.com/bruzina.keys
3232
- role: xebis.ansible.google_chrome
3333
- role: xebis.ansible.obsidian
34+
- role: xebis.ansible.openssh_client
3435
- role: xebis.ansible.visual_studio_code

0 commit comments

Comments
 (0)