diff --git a/inventory b/inventory index b591b0f..55d40e1 100644 --- a/inventory +++ b/inventory @@ -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 diff --git a/playbooks/update_upgrade.yml b/playbooks/update_upgrade.yml index 0c1ebc2..614e1b0 100644 --- a/playbooks/update_upgrade.yml +++ b/playbooks/update_upgrade.yml @@ -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: