Commit b23a3c8e authored by julian.gethmann's avatar julian.gethmann

Add clients role

parent 2c22cf9b
- hosts: clients
roles:
- clients
MaxLogSize 0
#
# "$Id: cupsd.conf.in 11025 2013-06-07 01:00:33Z msweet $"
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
# Set the default printer/job policies...
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
# Set the authenticated printer/job policies...
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
#
# End of "$Id: cupsd.conf.in 11025 2013-06-07 01:00:33Z msweet $".
#
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
# Printer configuration file for CUPS v1.7.5
# Written by cupsd on 2014-11-14 16:47
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
# <DefaultPrinter hp-LaserJet-1320-series>
# UUID urn:uuid:294665fe-2908-37de-5b71-f50b18041bb9
# Info LaserJet 1320
# Location room 618
# DeviceURI hp:/net/hp_LaserJet_1320_series?zc=NPI62FB28
# State Idle
# StateTime 1415179705
# Type 8433684
# Accepting Yes
# Shared Yes
# JobSheets none none
# QuotaPeriod 0
# PageLimit 0
# KLimit 0
# OpPolicy default
# ErrorPolicy stop-printer
# Option fitplot True
# </Printer>
<Printer HP-LaserJet-P2015-Series>
UUID urn:uuid:26e15387-5b67-3bdb-6bc8-e183a5b546d0
Info HP LaserJet P2015 Series
Location Room 621
MakeModel HP LaserJet P2015 Series Postscript (recommended)
DeviceURI hp:/net/HP_LaserJet_P2015_Series?zc=NPI8A10C3
State Idle
StateTime 1415979921
Type 8425684
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer Oki-MC851(PS)>
UUID urn:uuid:c20b481d-848e-30e6-5eab-8ba9fb397809
Info Oki MC851(PS)
Location Library
DeviceURI dnssd://OKI-MC851-522EAD._pdl-datastream._tcp.local/
State Idle
StateTime 1414591314
Type 8433756
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Attribute marker-colors \#000000,#00FFFF,#FF00FF,#FFFF00,#000000,#00FFFF,#FF00FF,#FFFF00,none,none,none
Attribute marker-levels 50,90,90,20,66,52,52,52,86,53,-1
Attribute marker-names Black Toner Cartridge OKI DATA CORP,Cyan Toner Cartridge OKI DATA CORP,Magenta Toner Cartridge OKI DATA CORP,Yellow Toner Cartridge OKI DATA CORP,Black Image Drum Unit OKI DATA CORP,Cyan Image Drum Unit OKI DATA CORP,Magenta Image Drum Unit OKI DATA CORP,Yellow Image Drum Unit OKI DATA CORP,Belt Unit OKI DATA CORP,Fuser Unit OKI DATA CORP,Waste Toner box OKI DATA CORP
Attribute marker-types toner,toner,toner,toner,opc,opc,opc,opc,transfer-unit,fuser,waste-toner
Attribute marker-change-time 1414591312
</Printer>
---
- name: restart autofs
become: yes
service: state=restarted name=autofs
- name: restart cups
become: yes
service: state=restarted name=cups
---
dependencies:
- { role: common }
---
- name: "Install basic client software"
apt: name={{ item }} state=latest
with_items: "{{ client_software }}"
when: ansible_distribution == 'Ubuntu'
become: yes
- name: "Install basic client software"
dnf: name={{ item }} state=latest
with_items: "{{ client_software }}"
when: ansible_distribution == 'Fedora'
become: yes
---
- name: install CUPS
become: yes
dnf: name=cups state=latest
when: ansible_distribution == 'Fedora'
become: yes
- name: install CUPS
become: yes
apt: name=cups state=latest
when: ansible_distribution == 'Ubuntu'
become: yes
- name: copy CUPS' configs
become: yes
copy: src={{ item }} dest=/etc/cups backup=yes group=lp owner=root
with_items:
- "printers.conf"
- "cupsd.conf"
notify: restart cups
- name: copy PPD files
become: yes
copy: src=ppd/{{ item }} dest=/etc/cups/ppd backup=yes group=root owner=root mode=644
notify: restart cups
with_items:
- "HP-LaserJet-P2015-Series.ppd"
- "Oki-MC851(PS).ppd"
---
- include: cups.yml
- include: basic_software.yml
---
- include: common.yml
- include: clients.yml
#- include: opera.yml
#- include: elegant.yml
#- include: admincomputer.yml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment