Skip to content

Commit

Permalink
refactor(profile): move locale and timezone vars to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
rudenkornk committed Apr 30, 2024
1 parent 034edc7 commit ecb7550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/basic_utils/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
- name: Set locale
become: true
community.general.locale_gen:
name: en_US.UTF-8
name: "{{ profile.locale }}"

- name: Set timezone
become: true
community.general.timezone:
name: Europe/Moscow
name: "{{ profile.timezone }}"

- name: Get user id
ansible.builtin.getent:
Expand Down
2 changes: 2 additions & 0 deletions roles/profile/vars/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ profile: # noqa: var-naming[no-role-prefix]
email: rudenkornk@gmail.com
gpg_email: rudenkornk@gmail.com
name: Nikita Rudenko
locale: en_US.UTF-8
timezone: Europe/Moscow

0 comments on commit ecb7550

Please sign in to comment.