started work on windows machines
This commit is contained in:
parent
b9f0d39bf8
commit
f187153c0b
@ -8,6 +8,9 @@ doc ansible_user=pollen
|
|||||||
proxmox ansible_user=root
|
proxmox ansible_user=root
|
||||||
pihole ansible_user=pollen
|
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]
|
[servers:children]
|
||||||
doc
|
doc
|
||||||
aws
|
aws
|
||||||
|
@ -8,12 +8,14 @@
|
|||||||
- name: update package index on all machines
|
- name: update package index on all machines
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
- name: Upgrade all packages to latest version
|
- name: Upgrade all packages to latest version
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
notify: reboot
|
notify: reboot
|
||||||
|
when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
@ -51,3 +53,11 @@
|
|||||||
command:
|
command:
|
||||||
cmd: docker compose -f pihole_compose.yml up -d
|
cmd: docker compose -f pihole_compose.yml up -d
|
||||||
chdir: /home/pollen/pihole
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user