DEV Community

Nantha Karthigesu
Nantha Karthigesu

Posted on

How to install IIS but with selective components?

Hi, I have a playbook with installs various servers components and redistributables on a Windows 2019 Standard server. However, the developer tells me that my IIS install has everything which he thinks the servers shouldn't have.

I used the code below to install IIS and components, which is deemed too much. Check attached screenshot SH1.png(everything installed) file to see what is installed.

  • name: Install IIS Web-Server with sub features and management tools ansible.windows.win_feature: name: Web-Server state: present include_sub_features: yes include_management_tools: yes register: win_feature

Dev wants me to only installed the bits of IIS required as shown in attached screenshot SH2.png(selected component required). Thanks.

Top comments (0)