Merge "Add variable for the ssh service and ensure its enabled"

This commit is contained in:
Zuul 2018-11-30 05:53:13 +00:00 committed by Gerrit Code Review
commit 55f27fdab3
4 changed files with 18 additions and 0 deletions

View File

@ -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]"

View File

@ -41,3 +41,5 @@ swift_service_distro_packages:
- swift-proxy
swift_rsync_service_name: rsync
swift_sshd: ssh

View File

@ -37,3 +37,5 @@ swift_service_distro_packages:
- python-swift
swift_rsync_service_name: rsyncd
swift_sshd: sshd

View File

@ -42,3 +42,5 @@ swift_service_distro_packages:
- python-swift
swift_rsync_service_name: rsyncd
swift_sshd: sshd