Merge "Ensure rsync restarts fully during swift setup"
This commit is contained in:
commit
879d127473
@ -62,21 +62,18 @@
|
|||||||
name: "rsyslog"
|
name: "rsyslog"
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
|
|
||||||
- name: Restart rsync service
|
- name: Ensure rsync service stopped
|
||||||
service:
|
service:
|
||||||
name: "rsync"
|
name: "rsync"
|
||||||
state: "stopped"
|
state: "stopped"
|
||||||
pattern: "rsync"
|
|
||||||
register: service_restart
|
register: service_restart
|
||||||
failed_when: "'msg' in service_restart and 'FAIL' in service_restart.msg|upper"
|
failed_when: "'msg' in service_restart and 'FAIL' in service_restart.msg|upper"
|
||||||
register: service_restart
|
register: service_restart
|
||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 2
|
delay: 2
|
||||||
notify: Ensure rsync service running
|
|
||||||
|
|
||||||
- name: Ensure rsync service running
|
- name: Ensure rsync service running
|
||||||
service:
|
service:
|
||||||
name: "rsync"
|
name: "rsync"
|
||||||
state: "started"
|
state: "started"
|
||||||
pattern: "rsync"
|
|
||||||
|
@ -38,14 +38,14 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: Restart rsync service
|
notify: ["Ensure rsync service stopped", "Ensure rsync service running"]
|
||||||
|
|
||||||
- name: "Enable rsync in defaults"
|
- name: "Enable rsync in defaults"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "/etc/default/rsync"
|
dest: "/etc/default/rsync"
|
||||||
line: "RSYNC_ENABLE=true"
|
line: "RSYNC_ENABLE=true"
|
||||||
regexp: "^RSYNC_ENABLE*"
|
regexp: "^RSYNC_ENABLE*"
|
||||||
notify: Restart rsync service
|
notify: ["Ensure rsync service stopped", "Ensure rsync service running"]
|
||||||
|
|
||||||
# We need the location of swift-recon-cron
|
# We need the location of swift-recon-cron
|
||||||
- name: "Get location of swift-recon-cron"
|
- name: "Get location of swift-recon-cron"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user