From 7d18859c3b7b64ec193cee426ffc44e97ff385d1 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 25 Nov 2020 14:42:50 -0800 Subject: [PATCH] reformat cups role --- roles/cups/tasks/main.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/roles/cups/tasks/main.yml b/roles/cups/tasks/main.yml index ff18429..a225e37 100644 --- a/roles/cups/tasks/main.yml +++ b/roles/cups/tasks/main.yml @@ -11,20 +11,29 @@ state: present - name: Add a print admin group - group: name=printadmin state=present + group: + name: printadmin + state: present - name: Allow the print admin group to administer CUPS - lineinfile: dest=/etc/cups/cups-files.conf - regexp=^SystemGroup - state=present - line="SystemGroup sys root printadmin" + lineinfile: + dest: /etc/cups/cups-files.conf + regexp: SystemGroup + state: present + line: "SystemGroup sys root printadmin" notify: - restart cups - name: Add the user to the print and print admin groups - user: name={{ user.name }} groups=printadmin,lp append=yes + user: + name: "{{ user.name }}" + groups: printadmin,lp + append: yes tags: - user - name: Enable and start CUPS - service: name=cups.service enabled=yes state=started + service: + name: cups.service + enabled: yes + state: started