That doesn’t work. foreman-installer uses a httpd puppet module which purges the httpd configuration, i.e. any file not set up by foreman-installer will be removed. You can easily try: create an empty file and run foreman-installer. The empty file should disappear…
As pointed out in my thread The woes of the httpd update (and others) it’s not the only packages/files affected…