Merge "Fix rsync service restart in os_swift"
This commit is contained in:
commit
847d186972
@ -62,17 +62,9 @@
|
||||
name: "rsyslog"
|
||||
state: "restarted"
|
||||
|
||||
- name: Ensure rsync service stopped
|
||||
- name: Restart rsync service
|
||||
service:
|
||||
name: "rsync"
|
||||
state: "stopped"
|
||||
register: service_restart
|
||||
failed_when: "'msg' in service_restart and 'FAIL' in service_restart.msg|upper"
|
||||
until: add_service|success
|
||||
retries: 3
|
||||
delay: 2
|
||||
|
||||
- name: Ensure rsync service running
|
||||
service:
|
||||
name: "rsync"
|
||||
state: "started"
|
||||
state: "restarted"
|
||||
enabled: "yes"
|
||||
sleep: 2
|
||||
|
@ -38,14 +38,14 @@
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify: ["Ensure rsync service stopped", "Ensure rsync service running"]
|
||||
notify: "Restart rsync service"
|
||||
|
||||
- name: "Enable rsync in defaults"
|
||||
lineinfile:
|
||||
dest: "/etc/default/rsync"
|
||||
line: "RSYNC_ENABLE=true"
|
||||
regexp: "^RSYNC_ENABLE*"
|
||||
notify: ["Ensure rsync service stopped", "Ensure rsync service running"]
|
||||
notify: "Restart rsync service"
|
||||
|
||||
- name: "Setup swift-recon-cron cron job"
|
||||
cron:
|
||||
|
Loading…
Reference in New Issue
Block a user