Add CUPS client

This commit is contained in:
Timo Makinen 2021-06-24 19:37:05 +03:00
parent 229d5bc229
commit c06a69eb29

25
cups/tasks/main.yml Normal file
View 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 }}"