8 – Installation Profile with Restrict by IP module

I have an installation profile I use for automating the setup of Drupal 8 websites.

Almost everything works perfectly, including configuration items such as date formats and file system, and default content type fields.

However, the Restrict by IP module configuration does not work. If I use the configuration import GUI in Drupal and paste in the contents of the file, it works as expected, so I’m confident that the syntax is correct.

The only thing I can think of is that the configuration references the administrator user account and its ID (1), and maybe at the time the profile is processed that account is not yet ready.

Is there a reason why the configuration isn’t applied during installation?