From 9435338c53a0f8628f45fb0808b29d6f06b8fe98 Mon Sep 17 00:00:00 2001 From: Stonewall Jackson Date: Sat, 11 Feb 2023 08:16:34 -0500 Subject: cups_client: add documentation --- roles/cups_client/README.md | 32 ++++++++++++++++++++++ .../cups_client/templates/etc/cups/client.conf.j2 | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 roles/cups_client/README.md (limited to 'roles') diff --git a/roles/cups_client/README.md b/roles/cups_client/README.md new file mode 100644 index 0000000..9a60904 --- /dev/null +++ b/roles/cups_client/README.md @@ -0,0 +1,32 @@ +CUPS Client +=========== + +Description +----------- + +The `cups_client` role configures a Linux host to print to a central CUPS server. + + +Variables +--------- + +This role **accepts** the following variables: + +Variable | Default | Description +------------|---------|------------ +`cups_host` |   | Hostname of CUPS server + + +Usage +----- + +Example playbook: + +````yaml +- name: configure CUPS client + hosts: linux_desktops + roles: + - role: cups_client + vars: + cups_host: cups.example.com +```` diff --git a/roles/cups_client/templates/etc/cups/client.conf.j2 b/roles/cups_client/templates/etc/cups/client.conf.j2 index 0869834..4d79e56 100644 --- a/roles/cups_client/templates/etc/cups/client.conf.j2 +++ b/roles/cups_client/templates/etc/cups/client.conf.j2 @@ -1,3 +1,3 @@ -ServerName {{ cups_server_name }}:631 +ServerName {{ cups_host }}:631 Encryption Required ValidateCerts Yes -- cgit