cups-client: Initial version of role
This commit is contained in:
parent
40d5107898
commit
c6a98151ba
1 changed files with 25 additions and 0 deletions
25
roles/cups-client/tasks/main.yml
Normal file
25
roles/cups-client/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
Reference in a new issue