From 8f08b34f53f728d8ea278ceb134e4196ab128fcb Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 19:12:29 +0200 Subject: [PATCH 01/58] Initial commit --- .gitignore | 3 ++ LICENSE | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 105 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c199eb --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# ---> Ansible +*.retry + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b3a2223 --- /dev/null +++ b/LICENSE @@ -0,0 +1,100 @@ +GNU GENERAL PUBLIC LICENSE +Version 1, February 1989 + +Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. + +When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + +For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. + +The precise terms and conditions for copying, distribution and modification follow. + +GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". + +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. + +2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: + + a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and + + b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). + + c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. + + d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. + +3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: + + a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, + + b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, + + c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) + +Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. + +4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. + +5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. + +7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. + +8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +Appendix: How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. + + , 1 April 1989 Ty Coon, President of Vice + +That's all there is to it! diff --git a/README.md b/README.md new file mode 100644 index 0000000..114000d --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Ansible + From 4ceffa9453e462dc44850d570bdd60429bbfa9b3 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 19:20:10 +0200 Subject: [PATCH 02/58] =?UTF-8?q?=E2=80=9Eupdate.yml=E2=80=9C=20hinzuf?= =?UTF-8?q?=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 update.yml diff --git a/update.yml b/update.yml new file mode 100644 index 0000000..ed877de --- /dev/null +++ b/update.yml @@ -0,0 +1,23 @@ +- hosts: all + become: true + become_user: root + tasks: + - name: Update apt repo and cache on all Debian/Ubuntu boxes + apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 + + - name: Upgrade all packages on servers + apt: upgrade=dist force_apt_get=yes + + - name: Check if a reboot is needed on all servers + register: reboot_required_file + stat: path=/var/run/reboot-required get_md5=no + + - name: Reboot the box if kernel updated + reboot: + msg: "Reboot initiated by Ansible for kernel updates" + connect_timeout: 5 + reboot_timeout: 300 + pre_reboot_delay: 0 + post_reboot_delay: 30 + test_command: uptime + when: reboot_required_file.stat.exists From 61eff7f24bb2cb23c0f899811d13a3916493997a Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 21:18:36 +0200 Subject: [PATCH 03/58] =?UTF-8?q?=E2=80=9Epythonyml=E2=80=9C=20hinzuf?= =?UTF-8?q?=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pythonyml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pythonyml diff --git a/pythonyml b/pythonyml new file mode 100644 index 0000000..d9f79b2 --- /dev/null +++ b/pythonyml @@ -0,0 +1,9 @@ +--- +- hosts: all + tasks: + - name: Package installation + dnf: + name: + - python3 + state: latest +Skip to the bottom of list From 1fa42b1b1ca68db2d132e79d55f55859f734f634 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 21:20:46 +0200 Subject: [PATCH 04/58] =?UTF-8?q?=E2=80=9Epython.yml=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pythonyml => python.yml | 1 - 1 file changed, 1 deletion(-) rename pythonyml => python.yml (81%) diff --git a/pythonyml b/python.yml similarity index 81% rename from pythonyml rename to python.yml index d9f79b2..b1de481 100644 --- a/pythonyml +++ b/python.yml @@ -6,4 +6,3 @@ name: - python3 state: latest -Skip to the bottom of list From 5ecf6668b59841f0a39135079cf48024a10eb128 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 21:24:48 +0200 Subject: [PATCH 05/58] =?UTF-8?q?=E2=80=9Epython.yml=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python.yml b/python.yml index b1de481..6a767e0 100644 --- a/python.yml +++ b/python.yml @@ -2,7 +2,7 @@ - hosts: all tasks: - name: Package installation - dnf: + apt: name: - python3 state: latest From 854dda17491da62413d943f7d35b16cb3090944b Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 21:45:07 +0200 Subject: [PATCH 06/58] =?UTF-8?q?=E2=80=9Epython.yml=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/python.yml b/python.yml index 6a767e0..2cce617 100644 --- a/python.yml +++ b/python.yml @@ -5,4 +5,3 @@ apt: name: - python3 - state: latest From 3cca41d58ca0b836de859a74eb90274b08be92de Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 21:46:18 +0200 Subject: [PATCH 07/58] =?UTF-8?q?=E2=80=9Epython.yml=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/python.yml b/python.yml index 2cce617..119778a 100644 --- a/python.yml +++ b/python.yml @@ -5,3 +5,4 @@ apt: name: - python3 + - python-is-python3 From e6ea0f7a4621c586fa788205ebe43267f99df85d Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 12 Jun 2023 21:51:15 +0200 Subject: [PATCH 08/58] =?UTF-8?q?=E2=80=9Epython.yml=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python.yml b/python.yml index 119778a..f098ae0 100644 --- a/python.yml +++ b/python.yml @@ -6,3 +6,5 @@ name: - python3 - python-is-python3 + - python3-venv + - python3-pip From e7ae245316c7369861cc2e9132839a9398e86a9a Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 13:47:01 +0200 Subject: [PATCH 09/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20hin?= =?UTF-8?q?zuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 windowssample.yml diff --git a/windowssample.yml b/windowssample.yml new file mode 100644 index 0000000..227ea9d --- /dev/null +++ b/windowssample.yml @@ -0,0 +1,51 @@ +- name: Install all updates and reboot as many times as needed + ansible.windows.win_updates: + category_names: '*' + reboot: true + +- name: Install all security, critical, and rollup updates without a scheduled task + ansible.windows.win_updates: + category_names: + - SecurityUpdates + - CriticalUpdates + - UpdateRollups + +#- name: Search-only, return list of found updates (if any), log to C:\ansible_wu.txt +# ansible.windows.win_updates: +# category_names: SecurityUpdates +# state: searched +# log_path: C:\ansible_wu.txt + +#- name: Install all security updates with automatic reboots +# ansible.windows.win_updates: +# category_names: +# - SecurityUpdates +# reboot: true + +#- name: Install only particular updates based on the KB numbers +# ansible.windows.win_updates: +# category_names: +# - SecurityUpdates +# accept_list: +# - KB4056892 +# - KB4073117 + +#- name: Exclude updates based on the update title +# ansible.windows.win_updates: +# category_names: +# - SecurityUpdates +# - CriticalUpdates +# reject_list: +# - Windows Malicious Software Removal Tool for Windows +# - \d{4}-\d{2} Cumulative Update for Windows Server 2016 + +# Optionally, you can increase the reboot_timeout to survive long updates during reboot +- name: Ensure we wait long enough for the updates to be applied during reboot + ansible.windows.win_updates: + reboot: true + reboot_timeout: 3600 + +# Search and download Windows updates +#- name: Search and download Windows updates without installing them +# ansible.windows.win_updates: +# state: downloaded From f6a6ee27e1b7b34ff6997a08688f941f66078567 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:01:46 +0200 Subject: [PATCH 10/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 227ea9d..a23cfee 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,14 +1,17 @@ -- name: Install all updates and reboot as many times as needed - ansible.windows.win_updates: - category_names: '*' - reboot: true +- name: file module demo + hosts: all + tasks: + - name: Install all updates and reboot as many times as needed + ansible.windows.win_updates: + category_names: '*' + reboot: true -- name: Install all security, critical, and rollup updates without a scheduled task - ansible.windows.win_updates: - category_names: - - SecurityUpdates - - CriticalUpdates - - UpdateRollups +#- name: Install all security, critical, and rollup updates without a scheduled task +# ansible.windows.win_updates: +# category_names: +# - SecurityUpdates +# - CriticalUpdates +# - UpdateRollups #- name: Search-only, return list of found updates (if any), log to C:\ansible_wu.txt # ansible.windows.win_updates: From 908a16b0932caff7496e40c0b2214e792c6fcde6 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:03:57 +0200 Subject: [PATCH 11/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index a23cfee..3cc143c 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,4 +1,4 @@ -- name: file module demo +--- hosts: all tasks: - name: Install all updates and reboot as many times as needed From b50df086f2e6f8c1f312e23eb81b2b5eab18131b Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:05:11 +0200 Subject: [PATCH 12/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 3cc143c..be90af1 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -43,10 +43,10 @@ # - \d{4}-\d{2} Cumulative Update for Windows Server 2016 # Optionally, you can increase the reboot_timeout to survive long updates during reboot -- name: Ensure we wait long enough for the updates to be applied during reboot - ansible.windows.win_updates: - reboot: true - reboot_timeout: 3600 +#- name: Ensure we wait long enough for the updates to be applied during reboot +# ansible.windows.win_updates: +# reboot: true +# reboot_timeout: 3600 # Search and download Windows updates #- name: Search and download Windows updates without installing them From 9500a1bd4eebf1426aba80f02dfb06b94e85b8eb Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:11:35 +0200 Subject: [PATCH 13/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index be90af1..462f34a 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,10 +1,20 @@ --- - hosts: all +- hosts: all tasks: - - name: Install all updates and reboot as many times as needed - ansible.windows.win_updates: - category_names: '*' - reboot: true + - name: Choose which Windows updates to install + win_updates: + category_names: + - SecurityUpdates + - CriticalUpdates + - UpdateRollups + +#--- +# hosts: all +# tasks: +# - name: Install all updates and reboot as many times as needed +# ansible.windows.win_updates: +# category_names: '*' +# reboot: true #- name: Install all security, critical, and rollup updates without a scheduled task # ansible.windows.win_updates: From c66fe600d4dd43351a7dab1292c22d2f2b0e7dbd Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:14:36 +0200 Subject: [PATCH 14/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 462f34a..dcf2c70 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -2,11 +2,11 @@ - hosts: all tasks: - name: Choose which Windows updates to install - win_updates: - category_names: - - SecurityUpdates - - CriticalUpdates - - UpdateRollups + win_updates: + category_names: + - SecurityUpdates + - CriticalUpdates + - UpdateRollups #--- # hosts: all From 043c3b4f288c81e581b359450fe3463c99a3db9e Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:30:12 +0200 Subject: [PATCH 15/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/windowssample.yml b/windowssample.yml index dcf2c70..31038ca 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,6 @@ --- - hosts: all + remote_user: Administrator tasks: - name: Choose which Windows updates to install win_updates: From 529901920c84bcce746d036aacfa3410724ee0fb Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:39:20 +0200 Subject: [PATCH 16/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 31038ca..b04dbd4 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,6 +1,6 @@ --- - hosts: all - remote_user: Administrator + ansible_user: Administrator tasks: - name: Choose which Windows updates to install win_updates: From 1646e770d5171e638b4d44a56d0369a54df39c3b Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:45:17 +0200 Subject: [PATCH 17/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index b04dbd4..48252c7 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,6 +1,7 @@ --- - hosts: all - ansible_user: Administrator + vars: + ansible_user: Administrator tasks: - name: Choose which Windows updates to install win_updates: From 012272f14fc19ad81fa5945729ea5f7bf63c57cb Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:49:31 +0200 Subject: [PATCH 18/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 48252c7..7936c1d 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,7 +1,7 @@ --- - hosts: all - vars: - ansible_user: Administrator +# vars: +# ansible_user: Administrator tasks: - name: Choose which Windows updates to install win_updates: From 9fd744f3006dbb5ff4b3234477bccc50ac61ab97 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 15:16:25 +0200 Subject: [PATCH 19/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 7936c1d..ebbb4ad 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,7 +1,8 @@ --- - hosts: all -# vars: -# ansible_user: Administrator + vars: + ansible_user: Administrator + remote_user: Administrator tasks: - name: Choose which Windows updates to install win_updates: From 2305bd3e3941db18532d01f263019c7128881f75 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 15:18:19 +0200 Subject: [PATCH 20/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windowssample.yml b/windowssample.yml index ebbb4ad..7796ed1 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -5,6 +5,9 @@ remote_user: Administrator tasks: - name: Choose which Windows updates to install + vars: + ansible_user: Administrator + remote_user: Administrator win_updates: category_names: - SecurityUpdates From d0e92754b2ee57373c73282c48fd40a41ff794b2 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 15:19:41 +0200 Subject: [PATCH 21/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 7796ed1..ebbb4ad 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -5,9 +5,6 @@ remote_user: Administrator tasks: - name: Choose which Windows updates to install - vars: - ansible_user: Administrator - remote_user: Administrator win_updates: category_names: - SecurityUpdates From 93a7c4d9de72bb95859f873524ae4475528c54cb Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 15:21:17 +0200 Subject: [PATCH 22/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index ebbb4ad..6cfa1fd 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,7 +1,6 @@ --- - hosts: all vars: - ansible_user: Administrator remote_user: Administrator tasks: - name: Choose which Windows updates to install From 9ed961db9b0718626b3b9d3a575b1ca0775dfd9d Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 17:24:35 +0200 Subject: [PATCH 23/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 6cfa1fd..13cf63e 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,7 +1,7 @@ --- - hosts: all - vars: - remote_user: Administrator +# vars: +# remote_user: Administrator tasks: - name: Choose which Windows updates to install win_updates: From f8917ddf4db95f2898807620f94cb496ac3b7f5f Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 19:04:14 +0200 Subject: [PATCH 24/58] =?UTF-8?q?=E2=80=9Eupdate-ohne-reboot=E2=80=9C=20hi?= =?UTF-8?q?nzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update-ohne-reboot | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 update-ohne-reboot diff --git a/update-ohne-reboot b/update-ohne-reboot new file mode 100644 index 0000000..0bf8a69 --- /dev/null +++ b/update-ohne-reboot @@ -0,0 +1,9 @@ +- hosts: all + become: true + become_user: root + tasks: + - name: apt update auf allen Servern + apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 + + - name: apt upgrade -y auf allen Servern + apt: upgrade=dist force_apt_get=yes \ No newline at end of file From 3eedc32d23a32edd6a50b162bd2a04486dfe86da Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 19:05:40 +0200 Subject: [PATCH 25/58] =?UTF-8?q?=E2=80=9Eping.yml=E2=80=9C=20hinzuf=C3=BC?= =?UTF-8?q?gen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ping.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ping.yml diff --git a/ping.yml b/ping.yml new file mode 100644 index 0000000..2b951af --- /dev/null +++ b/ping.yml @@ -0,0 +1,6 @@ +- hosts: all + + become: yes + + tasks: + - ping \ No newline at end of file From 22b285ea2fb4c406491b88c5cb0efcb558880901 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 19:07:33 +0200 Subject: [PATCH 26/58] =?UTF-8?q?=E2=80=9Eping.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ping.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ping.yml b/ping.yml index 2b951af..44f3e77 100644 --- a/ping.yml +++ b/ping.yml @@ -1,6 +1,4 @@ - hosts: all - become: yes - tasks: - ping \ No newline at end of file From 8febb3287662e8dc9da34c63907cd0d1b26c95e8 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 19:08:44 +0200 Subject: [PATCH 27/58] =?UTF-8?q?=E2=80=9Eping.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ping.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ping.yml b/ping.yml index 44f3e77..dbee32d 100644 --- a/ping.yml +++ b/ping.yml @@ -1,4 +1,5 @@ +--- - hosts: all become: yes tasks: - - ping \ No newline at end of file + - ping \ No newline at end of file From b08f2f83c2ffb5aeaeb62bfbfa8b138b149f7d6c Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 19:11:43 +0200 Subject: [PATCH 28/58] =?UTF-8?q?=E2=80=9Eping.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ping.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ping.yml b/ping.yml index dbee32d..05a3a4f 100644 --- a/ping.yml +++ b/ping.yml @@ -1,5 +1,7 @@ --- -- hosts: all - become: yes +- name: ping module + hosts: all + become: false tasks: - - ping \ No newline at end of file + - name: test connection + ansible.builtin.ping: \ No newline at end of file From c400218c3157f3abc595647d438d547c24fab68e Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 21:24:41 +0200 Subject: [PATCH 29/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 13cf63e..34cfaf3 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,5 @@ --- -- hosts: all +- hosts: windows # vars: # remote_user: Administrator tasks: From 03667b0310f08784ed89e4664424777ecd7aca18 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 08:41:05 +0200 Subject: [PATCH 30/58] =?UTF-8?q?=E2=80=9Eupdate.yml=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.yml b/update.yml index ed877de..66cafb6 100644 --- a/update.yml +++ b/update.yml @@ -1,4 +1,4 @@ -- hosts: all +- hosts: all:!win become: true become_user: root tasks: From 8264c5e15dfb65508d6bd10fea691bd520b79383 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 15:52:40 +0200 Subject: [PATCH 31/58] =?UTF-8?q?=E2=80=9Eupdate.yml=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.yml b/update.yml index 66cafb6..7a1bfdf 100644 --- a/update.yml +++ b/update.yml @@ -1,4 +1,4 @@ -- hosts: all:!win +- hosts: linux become: true become_user: root tasks: From 9ae7566d86c06ae1b4ebc494e9679fd97e047b99 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 16:28:33 +0200 Subject: [PATCH 32/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 34cfaf3..3e23fa9 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -2,21 +2,21 @@ - hosts: windows # vars: # remote_user: Administrator - tasks: - - name: Choose which Windows updates to install - win_updates: - category_names: - - SecurityUpdates - - CriticalUpdates - - UpdateRollups +# tasks: +# - name: Choose which Windows updates to install +# win_updates: +# category_names: +# - SecurityUpdates +# - CriticalUpdates +# - UpdateRollups #--- # hosts: all -# tasks: -# - name: Install all updates and reboot as many times as needed -# ansible.windows.win_updates: -# category_names: '*' -# reboot: true + tasks: + - name: Install all updates and reboot as many times as needed + ansible.windows.win_updates: + category_names: '*' + reboot: true #- name: Install all security, critical, and rollup updates without a scheduled task # ansible.windows.win_updates: From 1b290bf8c3bedb2bf1cb2cb8cbcccf7d03db1d96 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 16:31:25 +0200 Subject: [PATCH 33/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 3e23fa9..010a479 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,11 @@ --- - hosts: windows + tasks: + - name: Install all updates and reboot as many times as needed + ansible.windows.win_updates: + category_names: '*' + reboot: true + # vars: # remote_user: Administrator # tasks: @@ -12,11 +18,11 @@ #--- # hosts: all - tasks: - - name: Install all updates and reboot as many times as needed - ansible.windows.win_updates: - category_names: '*' - reboot: true +# tasks: +# - name: Install all updates and reboot as many times as needed +# ansible.windows.win_updates: +# category_names: '*' +# reboot: true #- name: Install all security, critical, and rollup updates without a scheduled task # ansible.windows.win_updates: From aa84bf3b743ae57524cb9a084738f46507f8aa6f Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 17:51:50 +0200 Subject: [PATCH 34/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 010a479..10fa137 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,5 @@ --- -- hosts: windows +- hosts: windows:mws_win tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From fae1154f3d2b6655a2fed3a4589773071c32f5c0 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 18:00:34 +0200 Subject: [PATCH 35/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 10fa137..0aa36fb 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,5 @@ --- -- hosts: windows:mws_win +- hosts: mws_win tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From f2982e0e42ea89c58932fcf205a686db02c67b5c Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 18:01:56 +0200 Subject: [PATCH 36/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 0aa36fb..581db5b 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,5 @@ --- -- hosts: mws_win +- hosts: mws_win:windows tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From b4e6d94fe39e900286f940532e9d938c966ef472 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 18:23:24 +0200 Subject: [PATCH 37/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 581db5b..010a479 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,5 @@ --- -- hosts: mws_win:windows +- hosts: windows tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From 406408151bf6faad8b07bf8cb3ab49ce9558f90f Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 18:25:55 +0200 Subject: [PATCH 38/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 010a479..278642e 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,5 @@ --- -- hosts: windows +- hosts: lokal_2019:mws_win tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From 2580d64ab4b25b5ac32478dd7a574ca371a5d0fd Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 20:22:07 +0200 Subject: [PATCH 39/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 278642e..403fb79 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,13 @@ --- -- hosts: lokal_2019:mws_win +- hosts: mws_win + vars + ansible_user=mws\Administrator + ansible_password=Edv#Mws + ansible_connection=ssh + ansible_shell_type=cmd + ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + ansible_ssh_retries=3 + tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From 83ab3924349fbae47d841407e70398374e70ea99 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 20:24:15 +0200 Subject: [PATCH 40/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 403fb79..4290d2a 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,6 +1,6 @@ --- - hosts: mws_win - vars + vars: ansible_user=mws\Administrator ansible_password=Edv#Mws ansible_connection=ssh From d285bd4b6f29f727d388057c986b5d8554e74d16 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 20:25:27 +0200 Subject: [PATCH 41/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowssample.yml b/windowssample.yml index 4290d2a..b48b70d 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,7 +1,7 @@ --- - hosts: mws_win vars: - ansible_user=mws\Administrator + ansible_user=Administrator ansible_password=Edv#Mws ansible_connection=ssh ansible_shell_type=cmd From d7e7c8fd092cfd1bdb31320a33c17f4a4e744f66 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 20:27:42 +0200 Subject: [PATCH 42/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index b48b70d..ef871d5 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,12 +1,12 @@ --- - hosts: mws_win vars: - ansible_user=Administrator - ansible_password=Edv#Mws - ansible_connection=ssh - ansible_shell_type=cmd - ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null - ansible_ssh_retries=3 + - ansible_user=Administrator + - ansible_password=Edv#Mws + - ansible_connection=ssh + - ansible_shell_type=cmd + - ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + - ansible_ssh_retries=3 tasks: - name: Install all updates and reboot as many times as needed From 15395911ac268aa478d8136d6db4ba28a99eb8cc Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 20:29:43 +0200 Subject: [PATCH 43/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index ef871d5..56ae98c 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,12 +1,12 @@ --- - hosts: mws_win vars: - - ansible_user=Administrator - - ansible_password=Edv#Mws - - ansible_connection=ssh - - ansible_shell_type=cmd - - ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null - - ansible_ssh_retries=3 + ansible_user: Administrator + ansible_password: Edv#Mws + ansible_connection: ssh + ansible_shell_type: cmd + ansible_ssh_common_args: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + ansible_ssh_retries: 3 tasks: - name: Install all updates and reboot as many times as needed From 49972f52c778e64cab7689ae946996385403d9e3 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 20:33:17 +0200 Subject: [PATCH 44/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 56ae98c..b747a94 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,11 +1,11 @@ --- - hosts: mws_win vars: - ansible_user: Administrator - ansible_password: Edv#Mws - ansible_connection: ssh - ansible_shell_type: cmd - ansible_ssh_common_args: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + ansible_user: "Administrator" + ansible_password: "Edv#Mws" + ansible_connection: "ssh" + ansible_shell_type: "cmd" + ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ansible_ssh_retries: 3 tasks: From bfe34224605c4f9bb65d9d71c9ca3e4192049127 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 20:45:24 +0200 Subject: [PATCH 45/58] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index b747a94..2017834 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,13 +1,5 @@ --- -- hosts: mws_win - vars: - ansible_user: "Administrator" - ansible_password: "Edv#Mws" - ansible_connection: "ssh" - ansible_shell_type: "cmd" - ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" - ansible_ssh_retries: 3 - +- hosts: mws_win tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From ad08bfc83e24c820884d048450e76ddadd2c1160 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sat, 17 Jun 2023 14:11:50 +0200 Subject: [PATCH 46/58] =?UTF-8?q?=E2=80=9EWindowsUpdate.yml=E2=80=9C=20hin?= =?UTF-8?q?zuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WindowsUpdate.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 WindowsUpdate.yml diff --git a/WindowsUpdate.yml b/WindowsUpdate.yml new file mode 100644 index 0000000..27e0da0 --- /dev/null +++ b/WindowsUpdate.yml @@ -0,0 +1,7 @@ +--- +- hosts: mws_win + tasks: + - name: Install all updates and reboot as many times as needed + ansible.windows.win_updates: + category_names: '*' + reboot: true From 4d6524918a9cb2cf43b82567b9f4a4413c30cead Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sat, 17 Jun 2023 14:15:48 +0200 Subject: [PATCH 47/58] =?UTF-8?q?=E2=80=9EWindowsUpdate.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WindowsUpdate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindowsUpdate.yml b/WindowsUpdate.yml index 27e0da0..9b5d42d 100644 --- a/WindowsUpdate.yml +++ b/WindowsUpdate.yml @@ -1,5 +1,5 @@ --- -- hosts: mws_win +- hosts: mws_win:lokal_2019 tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From 2bf026ba867eca58d122a72cb57857e4c091b0c3 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sun, 18 Jun 2023 13:33:14 +0200 Subject: [PATCH 48/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 114000d..a0b3922 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,34 @@ # Ansible + +im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar +im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" + + +meine `/etc/ansible/hosts` Datei +``` +[lokal_2019] +192.168.252.15 +[lokal_2019:vars] +ansible_ssh_user=Administrator +ansible_connection=ssh +ansible_shell_type=cmd +ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null +ansible_ssh_retries=3 +ansible_become_methode=runas +[mws_win] +mws-mail +mws-server-core +mws-wawi +mws-terminal +mws-terminal2 +mws-dc2 +mws-mailstore +[mws_win:vars] +ansible_ssh_user=Administrator +ansible_connection=ssh +ansible_shell_type=cmd +ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null +ansible_ssh_retries=3 +ansible_become_methode=runas +``` \ No newline at end of file From abbbb0f7f1c78708b179e49fd0068472442dc75d Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sun, 18 Jun 2023 13:36:48 +0200 Subject: [PATCH 49/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a0b3922..e51b9d5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ -# Ansible +# Ansible Semaphore +Ansible mit pip installiert. pip hat neuere Version von ansible. +`~/.ssh/config` muß Windows einträge enthalten. +keyauth in Windows: +`https://woshub.com/using-ssh-key-based-authentication-on-windows/` im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" From 5db644f9304349a3540ed9fbaef1a6194806d4ed Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sun, 18 Jun 2023 13:37:28 +0200 Subject: [PATCH 50/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e51b9d5..3729ef8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Ansible mit pip installiert. pip hat neuere Version von ansible. `~/.ssh/config` muß Windows einträge enthalten. keyauth in Windows: `https://woshub.com/using-ssh-key-based-authentication-on-windows/` - +## Semaphore: im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" From 1d660b6293f71c67a3efa9189c0758208b7442b6 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sun, 18 Jun 2023 13:38:17 +0200 Subject: [PATCH 51/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3729ef8..e2d1339 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Ansible mit pip installiert. pip hat neuere Version von ansible. keyauth in Windows: `https://woshub.com/using-ssh-key-based-authentication-on-windows/` ## Semaphore: -im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar -im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" +Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar. +Im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" meine `/etc/ansible/hosts` Datei From 262da9c4849d6f0d7d5e6c7d1f0aef7099f85570 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sun, 18 Jun 2023 13:39:47 +0200 Subject: [PATCH 52/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2d1339..0091144 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Ansible mit pip installiert. pip hat neuere Version von ansible. `~/.ssh/config` muß Windows einträge enthalten. keyauth in Windows: -`https://woshub.com/using-ssh-key-based-authentication-on-windows/` +[Anleitung](https://woshub.com/using-ssh-key-based-authentication-on-windows/) ## Semaphore: Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar. Im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" From fdab2f47f8eb7de952ab8678b97143c157e0f755 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sun, 18 Jun 2023 13:42:30 +0200 Subject: [PATCH 53/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0091144..04babd3 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Ansible Semaphore -Ansible mit pip installiert. pip hat neuere Version von ansible. +Ansible mit pip installiert. pip hat neuere Version von ansible.
`~/.ssh/config` muß Windows einträge enthalten. keyauth in Windows: [Anleitung](https://woshub.com/using-ssh-key-based-authentication-on-windows/) ## Semaphore: -Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar. +Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar.
Im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" From e9e12d1813854c6173cacbefa1e71a29f1b4e2f3 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Sun, 18 Jun 2023 13:43:16 +0200 Subject: [PATCH 54/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04babd3..45a4019 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Ansible mit pip installiert. pip hat neuere Version von ansible.
keyauth in Windows: [Anleitung](https://woshub.com/using-ssh-key-based-authentication-on-windows/) ## Semaphore: -Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar.
+Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar. Im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" From b2aea5feebcae923710084f77b53689981aa8b87 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Mon, 19 Jun 2023 19:50:38 +0200 Subject: [PATCH 55/58] =?UTF-8?q?=E2=80=9EWindowsUpdate.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WindowsUpdate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindowsUpdate.yml b/WindowsUpdate.yml index 9b5d42d..f082024 100644 --- a/WindowsUpdate.yml +++ b/WindowsUpdate.yml @@ -1,5 +1,5 @@ --- -- hosts: mws_win:lokal_2019 +- hosts: mws_win:lokal_2019:wander tasks: - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: From 6907a6b1a838430a36c62aaedefc2b567a8ed01c Mon Sep 17 00:00:00 2001 From: rpwolff Date: Tue, 20 Jun 2023 07:21:04 +0200 Subject: [PATCH 56/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 45a4019..aaa1646 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ Ansible mit pip installiert. pip hat neuere Version von ansible.
`~/.ssh/config` muß Windows einträge enthalten. keyauth in Windows: -[Anleitung](https://woshub.com/using-ssh-key-based-authentication-on-windows/) +[Anleitung](https://woshub.com/using-ssh-key-based-authentication-on-windows/) +Evtl.noch den ssh-Port in der Firewall öffnen. Weiterhin ist z.B. bei Wander eine Gruppe für ssh zugelassen. Hilfreich, wenn es nicht sichere Accounts am Rechner gibt, die nicht für ssh zugelassen sein sollen. ## Semaphore: Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar. Im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" From 9f74f24e9ee738fedfdf2f165039533ac2d7127c Mon Sep 17 00:00:00 2001 From: rpwolff Date: Tue, 20 Jun 2023 13:16:36 +0200 Subject: [PATCH 57/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aaa1646..f53927a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Ansible mit pip installiert. pip hat neuere Version von ansible.
`~/.ssh/config` muß Windows einträge enthalten. keyauth in Windows: [Anleitung](https://woshub.com/using-ssh-key-based-authentication-on-windows/) -Evtl.noch den ssh-Port in der Firewall öffnen. Weiterhin ist z.B. bei Wander eine Gruppe für ssh zugelassen. Hilfreich, wenn es nicht sichere Accounts am Rechner gibt, die nicht für ssh zugelassen sein sollen. +Evtl.noch den ssh-Port in der **Firewall** öffnen. Weiterhin ist z.B. bei Wander eine **Gruppe für ssh** zugelassen. Hilfreich, wenn es nicht sichere Accounts am Rechner gibt, die nicht für ssh zugelassen sein sollen. ## Semaphore: Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar. Im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne" From db22d974a7fa42d90059a863ccba79bff17e40f5 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Tue, 20 Jun 2023 13:17:45 +0200 Subject: [PATCH 58/58] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f53927a..b65fc0f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ ansible_connection=ssh ansible_shell_type=cmd ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ansible_ssh_retries=3 -ansible_become_methode=runas +ansible_become_methode=runas + [mws_win] mws-mail mws-server-core @@ -28,7 +29,8 @@ mws-wawi mws-terminal mws-terminal2 mws-dc2 -mws-mailstore +mws-mailstore + [mws_win:vars] ansible_ssh_user=Administrator ansible_connection=ssh