Ansible playbook for configuring a fresh install of Raspbian
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rpi-ansible/roles/common/tasks/linux-facts.yml

10 lines
255 B

---
- name: get timezone via timedatectl
shell: timedatectl | grep "Time zone" | cut -d: -f2 | cut -d'(' -f1 | sed -Ee 's/(^ *| *$)//g'
register: linux_tz
changed_when: False
- name: set linux-config facts
set_fact:
linux_tz: linux_tz.stdout