Avoid running our sshd role against rpm-ostree distros

This commit is contained in:
Salt 2022-08-28 11:46:35 -05:00
parent a12e186c38
commit cc3dcd5aeb

View File

@ -25,6 +25,9 @@
Subsystem: "sftp /usr/lib/openssh/sftp-server" Subsystem: "sftp /usr/lib/openssh/sftp-server"
UsePAM: yes UsePAM: yes
X11Forwarding: no X11Forwarding: no
# We avoid running on "atomic_container" distros since they already ship
# sshd and since this role doesn't support them
when: not ansible_pkg_mgr == "atomic_container"
tags: [ sshd, common ] tags: [ sshd, common ]
- hosts: all:!tags_no-docker - hosts: all:!tags_no-docker
roles: roles: