Skip to content

Commit af1a963

Browse files
authored
Merge pull request #89 from jmariondev/fix/conditional_ssh
Optionally leave SSH config alone
2 parents b62aeec + 5c99dd1 commit af1a963

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,15 @@ of the `ops` group. Read the **User and ACL Management** section for more info.
217217
The backend needs to be supported by [Proxmox](https://pve.proxmox.com/pve-docs/chapter-pvesm.html).
218218
Read the **Storage Management** section for more info.
219219

220-
`pve_ssh_port` allows you to change the SSH service port. If your SSH is listing
221-
on a different port then 22, please set this variable. If a new node is joining
222-
the cluster, the PVE cluster needs to communicate once via SSH.
220+
`pve_ssh_port` allows you to change the SSH port. If your SSH is listening on
221+
a port other than the default 22, please set this variable. If a new node is
222+
joining the cluster, the PVE cluster needs to communicate once via SSH.
223+
224+
`pve_manage_ssh` (default true) allows you to disable any changes this module
225+
would make to your SSH server config. This is useful if you use another role
226+
to manage your SSH server. Note that setting this to false is not officially
227+
supported, you're on your own to replicate the changes normally made in
228+
ssh_cluster_config.yml.
223229

224230
`interfaces_template` is set to the path of a template we'll use for configuring
225231
the network on these Debian machines. This is only necessary if you want to

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ pve_users: []
3939
pve_acls: []
4040
pve_storages: []
4141
pve_ssh_port: 22
42+
pve_manage_ssh: true

tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
when: "pve_cluster_enabled | bool"
1919

2020
- import_tasks: ssh_cluster_config.yml
21+
when:
22+
- "pve_manage_ssh | bool and pve_cluster_enabled | bool"
2123

2224
- name: Run handlers if needed (sshd reload)
2325
meta: flush_handlers

0 commit comments

Comments
 (0)