Merge "Add variable for the ssh service and ensure its enabled"
This commit is contained in:
commit
55f27fdab3
@ -47,3 +47,15 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart swift services
|
- Restart swift services
|
||||||
- Restart rsyslog
|
- 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]"
|
||||||
|
@ -41,3 +41,5 @@ swift_service_distro_packages:
|
|||||||
- swift-proxy
|
- swift-proxy
|
||||||
|
|
||||||
swift_rsync_service_name: rsync
|
swift_rsync_service_name: rsync
|
||||||
|
|
||||||
|
swift_sshd: ssh
|
@ -37,3 +37,5 @@ swift_service_distro_packages:
|
|||||||
- python-swift
|
- python-swift
|
||||||
|
|
||||||
swift_rsync_service_name: rsyncd
|
swift_rsync_service_name: rsyncd
|
||||||
|
|
||||||
|
swift_sshd: sshd
|
@ -42,3 +42,5 @@ swift_service_distro_packages:
|
|||||||
- python-swift
|
- python-swift
|
||||||
|
|
||||||
swift_rsync_service_name: rsyncd
|
swift_rsync_service_name: rsyncd
|
||||||
|
|
||||||
|
swift_sshd: sshd
|
Loading…
Reference in New Issue
Block a user