Apt module : install only security update

Hello,

is there a way to install only security update through apt module ?

I can do it with command line like this :

sudo sh -c ‘apt-get -o Dir::Etc::sourcelist=“security.sources.list” -o Dir::Etc::sourceparts=“-” update && apt-get upgrade’

PS : I don’t want to use unattended-upgrade, commonly used for this purpose.

Thanks
Yoann