forked from seapath/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
playbooks: ensure booting has been finished
When rebooting ensure systemd has finished to boot the systemd before running Ansible. Signed-off-by: Mathieu Dupré <[email protected]>
- Loading branch information
1 parent
d147c19
commit 4f63b8d
Showing
4 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (C) 2022, RTE (http://www.rte-france.com) | ||
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
|
||
- name: Restart | ||
reboot: | ||
- name: Wait for host to be online | ||
wait_for_connection: | ||
- name: Wait systemd has finished to boot | ||
command: systemctl is-system-running --wait | ||
register: system_status | ||
failed_when: system_status.rc != 0 and system_status.rc != 1 |