ansible-lint fixes

This commit is contained in:
Timo Makinen 2022-10-31 17:06:50 +00:00
parent 3a64f595fe
commit 203d9bea62
17 changed files with 53 additions and 57 deletions

View file

@ -1,5 +1,5 @@
---
- name: check paper size
- name: Check paper size
ansible.builtin.shell:
cmd: localectl status | grep -E '^\s+LC_PAPER=fi_FI.UTF-8$'
register: locale_check
@ -7,7 +7,7 @@
check_mode: false
changed_when: false
- name: set system paper size to a4
- name: Set system paper size to A4
ansible.builtin.command:
argv:
- localectl
@ -15,12 +15,12 @@
- LC_PAPER=fi_FI.UTF-8
when: locale_check.rc != 0
- name: install packages
- name: Install packages
ansible.builtin.package:
name: cups-client
state: installed
- name: create config directory
- name: Create config directory
ansible.builtin.file:
path: /etc/cups
state: directory
@ -28,7 +28,7 @@
owner: root
group: "{{ ansible_wheel }}"
- name: create config
- name: Create config
ansible.builtin.copy:
dest: /etc/cups/client.conf
content: |