Skip to content

Commit

Permalink
don't stop/start crond and don't start services after restore
Browse files Browse the repository at this point in the history
foreman-maintain takes care of all that, no need to duplicate work
  • Loading branch information
evgeni committed Jun 6, 2024
1 parent d60d0b0 commit 85bc189
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions roles/satellite-clone/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,23 +257,9 @@
- name: Finalize clone
block:
# Cron services can interfere with restoring the backup
- name: stop crond
systemd:
name: crond
state: stopped

- name: restore using foreman-maintain
command: foreman-maintain restore --assumeyes {{ backup_dir }}

- name: start crond
systemd:
name: crond
state: started

- name: Restart services
command: foreman-maintain service start

# We don't use pause module here because it displays a prompt
# to use ctrl+c which would break out of a production script.
- name: Wait for foreman-tasks service to start
Expand Down

0 comments on commit 85bc189

Please sign in to comment.