diff --git a/tasks/swift_post_install.yml b/tasks/swift_post_install.yml index 64a68115..b62a20ed 100644 --- a/tasks/swift_post_install.yml +++ b/tasks/swift_post_install.yml @@ -47,3 +47,15 @@ notify: - Restart swift services - Restart rsyslog + +- name: Enable SSHD + systemd: + name: "{{ swift_sshd }}" + state: started + enabled: yes + masked: no + daemon_reload: yes + delegate_to: "{{ item }}" + with_items: "{{ groups['swift_proxy'] }}" + when: + - "inventory_hostname == ((groups['swift_proxy'] | intersect(ansible_play_hosts)) | list)[0]" diff --git a/vars/debian.yml b/vars/debian.yml index 324ca3f6..2adfb208 100644 --- a/vars/debian.yml +++ b/vars/debian.yml @@ -41,3 +41,5 @@ swift_service_distro_packages: - swift-proxy swift_rsync_service_name: rsync + +swift_sshd: ssh \ No newline at end of file diff --git a/vars/redhat-7.yml b/vars/redhat-7.yml index d4ea7935..d9751baf 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat-7.yml @@ -37,3 +37,5 @@ swift_service_distro_packages: - python-swift swift_rsync_service_name: rsyncd + +swift_sshd: sshd \ No newline at end of file diff --git a/vars/suse.yml b/vars/suse.yml index 1a89b936..8a6a3867 100644 --- a/vars/suse.yml +++ b/vars/suse.yml @@ -42,3 +42,5 @@ swift_service_distro_packages: - python-swift swift_rsync_service_name: rsyncd + +swift_sshd: sshd \ No newline at end of file