Skip to content

Fix variable precedence #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<a name="1.4.2"></a>
### 1.4.2 (2022-05-12)

#### Bug Fixes

* resolve issue with ssh_config variable precedence


<a name="1.4.1"></a>
### 1.4.1 ()

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# variable fallback defaults
# usually overridden from Play or distro specific vars file
ssh_config: {}
ssh_config: "{{ ssh_config_default }}"
ssh_packages: []
ssh_service: sshd

Expand Down
2 changes: 1 addition & 1 deletion vars/debian/bullseye.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ssh_packages:

ssh_service: ssh

ssh_config:
ssh_config_default:
Include: /etc/ssh/sshd_config.d/*.conf
ChallengeResponseAuthentication: "no"
UsePAM: "yes"
Expand Down
2 changes: 1 addition & 1 deletion vars/openbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ssh_service: sshd

sshd_config_group: 'wheel'

ssh_config:
ssh_config_default:
PermitRootLogin: "no"
AuthorizedKeysFile: .ssh/authorized_keys
Subsystem: sftp /usr/libexec/sftp-server
2 changes: 1 addition & 1 deletion vars/ubuntu/bionic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ssh_packages:

ssh_service: ssh

ssh_config:
ssh_config_default:
Port: "{{ ssh_port }}"
ListenAddress: "{{ ssh_listen_address }}"
PermitRootLogin: "{{ ssh_permit_root_login }}"
Expand Down
2 changes: 1 addition & 1 deletion vars/ubuntu/trusty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ssh_packages:

ssh_service: ssh

ssh_config:
ssh_config_default:
Port: "{{ ssh_port }}"
Protocol: "{{ ssh_protocol }}"
ListenAddress: "{{ ssh_listen_address }}"
Expand Down
2 changes: 1 addition & 1 deletion vars/ubuntu/xenial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ssh_packages:

ssh_service: ssh

ssh_config:
ssh_config_default:
Port: "{{ ssh_port }}"
Protocol: "{{ ssh_protocol }}"
ListenAddress: "{{ ssh_listen_address }}"
Expand Down