Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage Windows printers #49708

Open
eglipeter opened this issue Dec 10, 2018 · 5 comments

Comments

@eglipeter
Copy link

@eglipeter eglipeter commented Dec 10, 2018

SUMMARY

Add the capability to manage installed printers for Windows nodes.

ISSUE TYPE
  • Feature Idea
EXPECTED RESULTS

It would be nice if there is a Windows module which allows to manage printers under Windows. For Powershell, there are the PrinterManagement cmdlets which could be used to provide such a module. Then, the user should define e.g. in the playbook the printers, the corresponding ports and the driver in the usual Ansible style. Finally, this configuration is applied to the Windows node.

@ansibot

This comment has been minimized.

Copy link
Contributor

@ansibot ansibot commented Dec 10, 2018

@eglipeter: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md

click here for bot help

@daBONDi

This comment has been minimized.

Copy link
Contributor

@daBONDi daBONDi commented Dec 13, 2018

I wrote modules for printer permission/port/queue/settings, its quite not well development module for internal usage, need to check with company if i'm allowed to contribute that.

@daBONDi

This comment has been minimized.

Copy link
Contributor

@daBONDi daBONDi commented Dec 17, 2018

Hi i promised you something!

Here are the 2 roles we use internaly to deploy 140 Printers on 2 Printer server and configure them.

Use it with caution(read the source) or use the roles only as reference!

Role for deploying the printer drivers

https://github.com/daBONDi/ansible-role-win-printer-driver

Role for creating share/permission/printer configuration

https://github.com/daBONDi/ansible-role-win-printer

Maybe keep this issue open, and with a little bit of sparetime i will try to get the modules in the roles ansible ready

@dagwieers dagwieers added the windows label Jan 31, 2019
@dagwieers

This comment has been minimized.

Copy link
Member

@dagwieers dagwieers commented Apr 3, 2019

I have a playbook where I remove an existing printer, and create new ones (including making it default and disabling Windows managing the default printer). You can find it here:
https://github.com/crombeen/ansible/blob/master/printer.yml

Proper modules doing this would be very welcome. I would need:

  • Add and remove PrinterDriver (removal using a regexp/glob)
  • Add and remove PrinterPort (removal using a regexp/glob)
  • Add and remove Printer (removal using a regexp/glob and incl. set as default)
  • Add and remove INF drivers (using PNPUtil ?)
@dagwieers

This comment has been minimized.

Copy link
Member

@dagwieers dagwieers commented Apr 3, 2019

@daBONDi Your modules look very interesting, it would be nice to see them ship with Ansible v2.9 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.