started work on windows machines

This commit is contained in:
Ibrahim Mkusa 2024-09-07 09:12:18 -04:00
parent b9f0d39bf8
commit f187153c0b
2 changed files with 13 additions and 0 deletions

View File

@ -8,6 +8,9 @@ doc ansible_user=pollen
proxmox ansible_user=root
pihole ansible_user=pollen
[windows]
bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5985 ansible_winrm_server_cert_validation=ignore
[servers:children]
doc
aws

View File

@ -8,12 +8,14 @@
- name: update package index on all machines
ansible.builtin.apt:
update_cache: yes
when: ansible_os_family == "Debian"
- name: Upgrade all packages to latest version
ansible.builtin.apt:
name: "*"
state: latest
notify: reboot
when: ansible_os_family == "Debian"
handlers:
@ -51,3 +53,11 @@
command:
cmd: docker compose -f pihole_compose.yml up -d
chdir: /home/pollen/pihole
# work in progress for windows host
# - name: Upgrade software on windows hosts
#hosts: bane
#become: true
#tasks:
#- name: run updates on all windows hosts
#ansible.windows.win_whoami: