-
-
Save anonymous/7a70b60b33370adeaae2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Service cups, restart if priners.conf was edited | |
cups_up: | |
service.running: | |
- name: cups | |
- enable: True | |
- watch: | |
- file: /etc/cups/printers.conf | |
cups_down: | |
service.dead: | |
- name: cups | |
- prereq: | |
- file: Add Brother printer | |
# Add Brother Printer | |
Add Brother printer: | |
file.replace: | |
- name: /etc/cups/printers.conf | |
- pattern: <DefaultPrinter Printer_Brother> | |
- repl: <DefaultPrinter Printer_Brother> | |
- append_if_not_found: True | |
- not_found_content: | | |
<DefaultPrinter Printer_Brother> | |
AuthInfoRequired none | |
Info Printer_Brother | |
Location admin-x-010 | |
DeviceURI ipp://admin-x-010:631/printers/Brother_HL_2240D_series | |
State Idle | |
Type 6 | |
Accepting Yes | |
Shared No | |
JobSheets none none | |
QuotaPeriod 0 | |
PageLimit 0 | |
KLimit 0 | |
OpPolicy default | |
ErrorPolicy stop-printer | |
</Printer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment