From 6a0b28246f7349936562ae89de33ab3f707f1b11 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 16 Apr 2019 16:39:04 +0200 Subject: [PATCH 1/3] add time option --- defaults/main.yml | 5 ++++- tasks/time.yml | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 823d714..fb3e695 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,4 +6,7 @@ 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 \ No newline at end of file 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 From 138c4b0d0445f4136168fbdad453ce8e689b1c43 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 11 May 2019 19:21:30 +0200 Subject: [PATCH 2/3] add yarn --- tasks/base_software.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/base_software.yml b/tasks/base_software.yml index d34a601..5fb0761 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','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: ['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' ] # not required. Name or list of names of the packages to install, upgrade, or remove. become: yes - name: install powerline status via pip From 0ea1747d3e5865ad4dac8670cd7608f624843d51 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 13 May 2019 22:04:00 +0200 Subject: [PATCH 3/3] put base software in variable --- defaults/main.yml | 32 +++++++++++++++++++++++++++++++- tasks/base_software.yml | 2 +- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index fb3e695..c23c207 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,4 +9,34 @@ arch_base_locales: [ ] time: hwclock: UTC - timezone: Europe/Paris \ No newline at end of file + 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 5fb0761..caa3b83 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','htop','thefuck','tldr','ntfs-3g','python-lxml','tmux','vim','zsh-theme-powerlevel9k','python-pip','pacman-contrib','yarn','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