mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-11-01 11:30:15 +00:00
Chocolatey server role
This commit is contained in:
1 parent
265f582bdf
commit
3027c3dd76
6 files changed
+150
No files matched your search
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- name: Features
|
||||
tags: choco_features
|
||||
block:
|
||||
- name: Install IIS and management tools # can maybe be skipped (imported role already does this)
|
||||
win_feature:
|
||||
name:
|
||||
- Web-WebServer
|
||||
- Web-Scripting-Tools
|
||||
state: present
|
||||
include_management_tools: yes
|
||||
include_sub_features: yes
|
||||
register: feature_status
|
||||
|
||||
- name: Install .Net framework (4.5.2 minimum requirement for choco GUI)
|
||||
ansible.windows.win_optional_feature:
|
||||
name: NetFx4
|
||||
state: present
|
||||
register: opt_feature_status
|
||||
|
||||
- name: Rebooting Servers post feature installation
|
||||
win_reboot:
|
||||
reboot_timeout_sec: 1200
|
||||
when: feature_status.reboot_required == true or
|
||||
opt_feature_status.reboot_required == true
|
||||
Reference in new issue
Block a user