Giter VIP home page Giter VIP logo

ansible_role_wsus_server's Introduction

WSUS Server

This role installs and configures the WSUS role for Windows 2016, and Windows 2019.

Requirements

There are no special requirements apart from the standard items to allow Ansible to run on the target.

Role Variables

The following variables are defined in /defaults/main.yml:

  • wsus_install_management_tools: Whether to install the WSUS MMC or not. Default is yes
  • wsus_content_folder: Sets the folder location for WSUS to store its content. Default is C:\WSUS
  • wsus_products_list: A list of products which updates will be downloaded for. Default items are Windows Server 2016 and Windows Server 2019
  • wsus_classifications_list: A list of the Update Classifications that will be enabled. Default items are Critical Updates and Security Updates
  • wsus_use_proxy: Used to determine if proxy for WSUS Server will be configured. Default is no, only applies if wsus_port and wsus_proxy are defined.
  • wsus_enable_default_approval_rule: Enable or disable the default approval rule in WSUS. Default is true.
  • wsus_category_sync_timeout_minutes: Sets the amount of time in minutes for sync timeout to occur. Default is 1000.
  • wsus_languages: A list of languages for which updates will be downloaded by WSUS. Default is just en (English)
  • wsus_choclatey_source: Defaults to default community chocolatey repository. Default is http://chocolatey.org/api/v2.
  • wsus_remove_default_website: Choice to remove default iis website. Default is true.
  • wsus_install_report_viewer: Choice on whether to install report viewer. Defaults is True.
  • wsus_chocolatey_source: Source for chocoloatey packages. Default is http://chocolatey.org/api/v2
  • wsus_computer_target_group_list: List of target groups to create on WSUS Server. Defaults are Servers and WorkStations
  • wsus_targeting_mode: Option of how to set Target Groups valid options are Server and Client wsus_sync_daily_time: hour: 0 minute: 0
    Set the time of day when WSUS will run an automatic synchronization. Use `hour: 0` for midnight.
    
    

The Following variables are defined in /vars/main.yml:

  • wsus_script_folder: Sets the folder for storing WSUS scripts. Default is C:\WSUS\Scripts\
  • wsus_log_folder: Sets the folder for logging WSUS related items. Default is C:\WSUS\Logs
  • wsus_facts: Determines whether WSUS facts should be returned

Dependencies

There are no known dependencies.

Example Playbook

An example playbook for using this role:

  ---
  - hosts: all
    vars:
      ansible_user: 'administrator'
      ansible_become_user: System
      ansible_become_method: runas
      ansible_shell_type: powershell
      ansible_host_key_checking: False
      ansible_ssh_common_args: '-C -o ControlMaster=auto -o   ControlPersi
  st=180s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/ dev/null'
      wait_for_sync: True
    roles:
      - wsus

License

MIT

Author Information

@gamthis (Larry Lane)

ansible_role_wsus_server's People

Contributors

gamethis avatar jantari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ansible_role_wsus_server's Issues

Unmaintained?

Hello @gamethis

I opened #2 a month ago and so far no response. I was forced to fork this role into a private repository and I made many many fixes and improvements to my fork that I would like to contribute back upstream here so that everyone can benefit from them - but I was wondering whether you are still maintaining this role, if not I would ask you to please archive the repository so that new people who find this role and may want to use it are aware of its abandoned state.

If you are back and interested in PRs I can make many separate ones for every fix and improvement I made.

Add test suite to role

I am thinking of adding a testing suite into the repo.

was thinking of doing a molecule test suite with docker image for testing against. Need to validate that wsus can be configured on windows docker image if it can will add if not will go vagrant route.
alternatively we could put in a vagrant box and test.

Ready for 1.0.0

Checklist for initial Release of 1.0.0

Thoughts for initial 1.0.0 are the following needed?
Should we go ahead and tag the repo now or after the following are added?

  • Documentation Review
  • Formating
  • Idiomatic
  • variable changes

Dependency on a role named "reboot"

Hi,

this role tries to import a role named "reboot" in https://github.com/gamethis/ansible_role_wsus_server/blob/master/tasks/install.yml#L28

however, meta/main.yml file does not specify a dependency on any such role:
https://github.com/gamethis/ansible_role_wsus_server/blob/master/meta/main.yml

thus, this role fails to run with the error:

ERROR! the role 'reboot' was not found in /home/$USER/gitlab/platforms/wsus/roles:/home/$USER/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/$USER/gitlab/platforms/wsus

The error appears to be in '/home/$USER/.ansible/roles/wsus_server/tasks/install.yml': line 28, column 11, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  import_role:
    name: reboot
          ^ here

I am not sure what that role was supposed to do, but there is a simple win_reboot module available - could this broken role dependency perhaps be removed and win_reboot used directly instead?

Thanks

add badges and actions

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.