diff --git a/posh.txt b/posh.txt index dc3ba9c..839a5d4 100644 --- a/posh.txt +++ b/posh.txt @@ -4976,6 +4976,24 @@ nano /etc/ansible/win-reboot.yml ansible-playbook /etc/ansible/win-reboot.yml +### win_updates + +nano /etc/ansible/win-update.yml + +- hosts: ws + tasks: + - name: Install only particular updates based on the KB numbers + ansible.windows.win_updates: + category_names: + - SecurityUpdates + # accept_list: + # - KB4056892 + # - KB4073117 + reboot: true + reboot_timeout: 3600 + +ansible-playbook /etc/ansible/win-update.yml + ### win_find nano /etc/ansible/win-ls.yml @@ -4994,12 +5012,28 @@ nano /etc/ansible/win-ls.yml # Рекурсивный поиск (в дочерних директориях) recurse: true register: command_output - - name: Output port ssh + - name: Output debug: var: command_output ansible-playbook /etc/ansible/win-ls.yml +### win_uri + +nano /etc/ansible/rest-get.yml + +- hosts: ws + tasks: + - name: REST GET request to endpoint github + ansible.windows.win_uri: + url: https://api.github.com/repos/Lifailon/pSyslog/releases/latest + register: http_output + - name: Output + debug: + var: http_output + +ansible-playbook /etc/ansible/rest-get.yml + # Jenkins nano /etc/apt/sources.list.d/jenkins.list