diff --git a/defaults/main.yml b/defaults/main.yml index 823d714..c23c207 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,4 +6,37 @@ arch_base_timezone: Europe/Paris arch_base_locales: [ "fr_FR.UTF-8", "en_US.UTF-8" -] \ No newline at end of file +] +time: + hwclock: UTC + timezone: Europe/Paris + +system_base_softwares: + - 'zsh' + - 'stow' + - 'wol' + - 'nmap' + - 'bind-tools' + - 'rsync' + - 'awesome-terminal-fonts' + - 'wget' + - 'bat' + - 'diff-so-fancy' + - 'git' + - 'htop' + - 'thefuck' + - 'tldr' + - 'ntfs-3g' + - 'python-lxml' + - 'tmux' + - 'vim' + - 'zsh-theme-powerlevel9k' + - 'python-pip' + - 'pacman-contrib' + - 'yarn' + - 'npm' + - 'nethogs' + - 'iftop' + - 'zip' + - 'unzip' + - 'unrar' \ No newline at end of file diff --git a/tasks/base_software.yml b/tasks/base_software.yml index 9f8e69f..65f90c0 100644 --- a/tasks/base_software.yml +++ b/tasks/base_software.yml @@ -19,7 +19,7 @@ - name: launch base install software pacman: state: present # not required. choices: absent;latest;present. Desired state of the package. - name: ['zsh','stow','wol','nmap','bind-tools','rsync','awesome-terminal-fonts','wget','bat','diff-so-fancy','git','git-lfs','htop','thefuck','tldr','ntfs-3g','python-lxml','tmux','vim','zsh-theme-powerlevel9k','python-pip','pacman-contrib','npm','nethogs','iftop','zip','unzip','unrar' ] # not required. Name or list of names of the packages to install, upgrade, or remove. + name: "{{system_base_softwares}}" become: yes - name: install powerline status via pip diff --git a/tasks/time.yml b/tasks/time.yml index 7ff4e0b..d9da526 100644 --- a/tasks/time.yml +++ b/tasks/time.yml @@ -3,4 +3,10 @@ command: timedatectl set-ntp true become: yes args: - creates: /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service \ No newline at end of file + creates: /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service + +- name: Set timezone and hardware clock + timezone: + hwclock: '{{ time.hwclock }}' + name: '{{ time.timezone }}' + become: yes \ No newline at end of file