From 0ea1747d3e5865ad4dac8670cd7608f624843d51 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 13 May 2019 22:04:00 +0200 Subject: [PATCH] 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