Fixes for ansible-lint
This commit is contained in:
parent
225d79acad
commit
82a43f8921
10 changed files with 23 additions and 21 deletions
|
@ -3,9 +3,9 @@
|
|||
ansible.builtin.shell:
|
||||
cmd: localectl status | grep -E '^\s+LC_PAPER=fi_FI.UTF-8$'
|
||||
register: locale_check
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
|
||||
- name: Set system paper size to A4
|
||||
ansible.builtin.command:
|
||||
|
@ -13,6 +13,8 @@
|
|||
- localectl
|
||||
- set-locale
|
||||
- LC_PAPER=fi_FI.UTF-8
|
||||
register: result
|
||||
changed_when: result.rc == 0
|
||||
when: locale_check.rc != 0
|
||||
|
||||
- name: Install packages
|
||||
|
@ -24,7 +26,7 @@
|
|||
ansible.builtin.file:
|
||||
path: /etc/cups
|
||||
state: directory
|
||||
mode: 0755
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
|
@ -36,6 +38,6 @@
|
|||
Encryption Required
|
||||
TrustOnFirstUse No
|
||||
ValidateCerts Yes
|
||||
mode: 0644
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue