time.yml 300 B

12345678
  1. ---
  2. # libpam-systemd and dbus (dependency) are needed for timedatectl to work
  3. - name: ensure libpam-systemd is installed
  4. apt: name=libpam-systemd install_recommends=no
  5. - name: ensure timezone is set to CET
  6. command: timedatectl set-timezone CET
  7. when: ansible_date_time.tz not in ['CET','CEST']