Files
community.general/lib/ansible/modules/system
Tobias Wolf f1ae2eb4f1 systemd: Add boolean option to enable --no-block
In our environment we have custom services that need to be stopped and
restarted very gracefully to not interrupt active sessions.

A stop job, depending on the state, can take up to 20 minutes until the
process exits. It simply reacts to SIGTERM with a graceful shutdown.

By default, systemctl blocks until the job has completed, which leads to
Ansible hanging on this task for up to 20 minutes.

Thankfully systemctl supports the `--no-block` flag which lets the job
continue in the background.

This PR adds support for that flag as the `no_block` boolean option.

From the man page:

   --no-block
       Do not synchronously wait for the requested operation to
       finish. If this is not specified, the job will be
       verified, enqueued and systemctl will wait until the
       unit's start-up is completed. By passing this argument,
       it is only verified and enqueued. This option may not be
       combined with --wait.
2017-01-13 16:26:06 -05:00
..
2016-12-08 11:22:22 -05:00
2017-01-11 18:56:34 -05:00
2016-12-20 11:53:49 +00:00
2016-12-08 11:35:21 -05:00
2016-12-13 13:24:34 -05:00
2016-12-10 11:06:11 -08:00
2016-12-13 13:51:13 -05:00
2017-01-05 15:45:26 -08:00
2017-01-09 09:30:32 -08:00
2016-12-08 11:25:35 -05:00
2016-12-08 11:25:35 -05:00
2017-01-09 15:44:53 -05:00
2016-12-13 13:51:13 -05:00