cups/server: Remove nginx frontend proxy
This commit is contained in:
parent
a7f22619f9
commit
e345e29b19
3 changed files with 30 additions and 19 deletions
|
@ -1,3 +0,0 @@
|
||||||
location / {
|
|
||||||
proxy_pass https://localhost:631;
|
|
||||||
}
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- {role: nginx/server}
|
|
||||||
- {role: kerberos/client}
|
- {role: kerberos/client}
|
||||||
- {role: ldap/nss}
|
- {role: ldap/nss}
|
||||||
|
|
|
@ -27,6 +27,36 @@
|
||||||
line: "DefaultAuthType Negotiate"
|
line: "DefaultAuthType Negotiate"
|
||||||
notify: restart cups
|
notify: restart cups
|
||||||
|
|
||||||
|
- name: configure cups listen port
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/cups/cupsd.conf
|
||||||
|
regexp: "^Listen (.*:)?631"
|
||||||
|
line: "Listen 631"
|
||||||
|
notify: restart cups
|
||||||
|
|
||||||
|
- name: link private key
|
||||||
|
file:
|
||||||
|
dest: "/etc/cups/ssl/{{ inventory_hostname }}.key"
|
||||||
|
src: "{{ tls_private }}/{{ inventory_hostname }}.key"
|
||||||
|
state: link
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
follow: false
|
||||||
|
force: true
|
||||||
|
notify: restart cups
|
||||||
|
|
||||||
|
|
||||||
|
- name: link certificate
|
||||||
|
file:
|
||||||
|
dest: "/etc/cups/ssl/{{ inventory_hostname }}.crt"
|
||||||
|
src: "{{ tls_certs }}/{{ inventory_hostname }}.crt"
|
||||||
|
state: link
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
follow: false
|
||||||
|
force: true
|
||||||
|
notify: restart cups
|
||||||
|
|
||||||
- name: disable printer advertising
|
- name: disable printer advertising
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/cups/cupsd.conf
|
path: /etc/cups/cupsd.conf
|
||||||
|
@ -80,18 +110,3 @@
|
||||||
name: cups
|
name: cups
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: allow nginx to connect cups
|
|
||||||
seboolean:
|
|
||||||
name: httpd_can_network_connect
|
|
||||||
persistent: true
|
|
||||||
state: true
|
|
||||||
|
|
||||||
- name: configure nginx proxy
|
|
||||||
copy:
|
|
||||||
dest: "/etc/nginx/conf.d/{{ inventory_hostname }}/cups.conf"
|
|
||||||
src: cups-nginx.conf
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: "{{ ansible_wheel }}"
|
|
||||||
notify: restart nginx
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue