Change default shell to CMD
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
@@ -9,12 +8,14 @@
|
||||
update_cache: yes
|
||||
upgrade: safe
|
||||
when: ansible_os_family == "Debian"
|
||||
become: true
|
||||
|
||||
- name: "Updating and Upgrading Yum Packages"
|
||||
yum:
|
||||
name: '*'
|
||||
state: latest
|
||||
when: ansible_os_family == "RedHat"
|
||||
become: true
|
||||
|
||||
# For DNF-based systems (e.g., Fedora), you can add a similar task:
|
||||
- name: "Updating and Upgrading Dnf Packages"
|
||||
@@ -22,6 +23,7 @@
|
||||
name: '*'
|
||||
state: latest
|
||||
when: ansible_distribution == "Fedora"
|
||||
become: true
|
||||
|
||||
# For Windows Hosts
|
||||
- name: Install all updates and reboot as many times as needed
|
||||
|
||||
Reference in New Issue
Block a user