Hi!
Use the shutdown command instead of reboot. shutdown is more flexible and it seems script friendly. You can combine this with the “Refresh Project Nodes” step (configured with a sleep period) and then dispatch any other command. Take a look at this example:
- defaultTab: nodes description: '' executionEnabled: true id: 155c3b77-0b3b-4a91-b637-7cc9c27c13bb loglevel: INFO name: UpdateAndRestartDemo nodeFilterEditable: false nodefilters: dispatch: excludePrecedence: true keepgoing: false rankOrder: ascending successOnEmptyNodeFilter: false threadcount: '1' filter: 'name: remote_node ' nodesSelectedByDefault: true plugins: ExecutionLifecycle: {} scheduleEnabled: true sequence: commands: - autoSecureInput: 'false' passSecureInput: 'false' script: sudo shutdown --reboot +1 - configuration: sleep: '90' nodeStep: false type: source-refresh-plugin - exec: whoami keepgoing: true strategy: sequential uuid: 155c3b77-0b3b-4a91-b637-7cc9c27c13bbTested against Rocky Linux, feel free to modify it.
Cheers!
--
You received this message because you are subscribed to a topic in the Google Groups "rundeck-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rundeck-discuss/7h-7q-KlqYM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rundeck-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rundeck-discuss/1268c535-1c6e-4cfe-a53f-e8f41d87482en%40googlegroups.com.