Hello Nux, At the moment, there is no way to disable a particular module globally or within a concrete boot stage but removing it from `/etc/cloud/cloud.cfg` or overriding a `<boot_stage>_modules` key in a file within `/etc/cloud/cloud.cfg.d/`.
``` # /etc/cloud/cloud.cfg.d/50-disable-set-passwords.cfg cloud_config_modules: - wireguard - snap - ubuntu_autoinstall - ssh-import-id - keyboard - locale # - set-passwords - grub-dpkg - apt-pipelining - apt-configure - ubuntu-advantage - ntp - timezone - disable-ec2-metadata - runcmd - byobu ``` One downside of this approach worth to mention is that it shadows the original cloud_config_modules section in cloud.cfg and if that section gets modified in a new cloud-init version / cloud image then it is going to be ignored. Kind regards, On Wed, Feb 22, 2023 at 2:52 PM Nux <[email protected]> wrote: > Hi, > > By default cloud.cfg enables the "set-passwords" config module. I'd like > to disable it, but don't want to touch cloud.cfg, rather I was wondering > whether there is a way to do it in a cloud.cfg.d/file instead. > Can anyone advise of any way to do this? > > Thanks > > -- > Mailing list: https://launchpad.net/~cloud-init > Post to : [email protected] > Unsubscribe : https://launchpad.net/~cloud-init > More help : https://help.launchpad.net/ListHelp > -- Alberto Contreras CPC Software Engineer II
-- Mailing list: https://launchpad.net/~cloud-init Post to : [email protected] Unsubscribe : https://launchpad.net/~cloud-init More help : https://help.launchpad.net/ListHelp

