Add CUPS client
This commit is contained in:
parent
229d5bc229
commit
c06a69eb29
1 changed files with 25 additions and 0 deletions
25
cups/tasks/main.yml
Normal file
25
cups/tasks/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
- name: install packages
|
||||||
|
package:
|
||||||
|
name: cups-client
|
||||||
|
state: installed
|
||||||
|
|
||||||
|
- name: create config directory
|
||||||
|
file:
|
||||||
|
path: /etc/cups
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
|
- name: create config
|
||||||
|
copy:
|
||||||
|
dest: /etc/cups/client.conf
|
||||||
|
content: |
|
||||||
|
ServerName print.{{ mail_domain }}:443
|
||||||
|
Encryption Required
|
||||||
|
TrustOnFirstUse No
|
||||||
|
ValidateCerts Yes
|
||||||
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
Loading…
Add table
Add a link
Reference in a new issue