Skip to content

Commit

Permalink
fix issues found by ansible-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nsv777 committed Dec 14, 2023
1 parent a80f509 commit eaff092
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion playbooks/arch_on_dell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
roles:
- role: locale
vars:
locale: pl_PL.UTF-8
locale_locale: pl_PL.UTF-8
- role: configure_pacman
- role: systemd
- role: usb_mouse_on_boot
Expand Down
4 changes: 2 additions & 2 deletions playbooks/roles/configure_pacman/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
- name: Enable Spain mirror in /etc/pacman.d/mirrorlist
ansible.builtin.replace:
path: /etc/pacman.d/mirrorlist
regexp: '^#Server = http:\/\/mirror.librelabucm.org\/archlinux\/\$repo\/os\/\$arch'
replace: Server = http://mirror.librelabucm.org/archlinux/$repo/os/$arch
regexp: '^#Server = https:\/\/mirror.librelabucm.org\/archlinux\/\$repo\/os\/\$arch'
replace: Server = https://mirror.librelabucm.org/archlinux/$repo/os/$arch
become: true
notify: update_pacman_cache
tags:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/locale/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
locale: en_US.UTF-8
locale_locale: en_US.UTF-8
10 changes: 5 additions & 5 deletions playbooks/roles/locale/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
- name: "/etc/locale.gen: uncomment locale {{ locale }}"
- name: "/etc/locale.gen: uncomment locale {{ locale_locale }}"
ansible.builtin.replace:
dest: /etc/locale.gen
regexp: '^#{{ locale }} UTF-8.*$'
replace: '{{ locale }} UTF-8'
regexp: '^#{{ locale_locale }} UTF-8.*$'
replace: '{{ locale_locale }} UTF-8'
become: true
notify: generate_locales
tags:
Expand All @@ -14,8 +14,8 @@
ansible.builtin.meta: flush_handlers


- name: "Setting locale to {{ locale }}"
ansible.builtin.command: 'localectl set-locale LANG="{{ locale }}"'
- name: "Setting locale to {{ locale_locale }}"
ansible.builtin.command: 'localectl set-locale LANG="{{ locale_locale }}"'
changed_when: false
become: true
tags:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/systemd/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
conf_d_path: /etc/systemd/journald.conf.d
systemd_journald_conf_d_path: /etc/systemd/journald.conf.d
4 changes: 2 additions & 2 deletions playbooks/roles/systemd/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Create conf.d directory
ansible.builtin.file:
path: "{{ conf_d_path }}"
path: "{{ systemd_journald_conf_d_path }}"
state: directory
mode: "0755"
become: true
Expand All @@ -13,7 +13,7 @@
- name: Copy journald config
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ conf_d_path }}"
dest: "{{ systemd_journald_conf_d_path }}"
mode: "0644"
with_fileglob:
- files/*
Expand Down

0 comments on commit eaff092

Please sign in to comment.