From fbce9877607dcb001adc4d0f56e63e90e3833b52 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 8 Apr 2019 23:09:14 +0200 Subject: [PATCH] complete variable for autofs --- tasks/base_software.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tasks/base_software.yml b/tasks/base_software.yml index 39dbd83..1d1c590 100644 --- a/tasks/base_software.yml +++ b/tasks/base_software.yml @@ -1,6 +1,23 @@ +- name: upgrade system + pacman: + state: latest # not required. choices: absent;latest;present. Desired state of the package. + upgrade: true # not required. Whether or not to upgrade whole system. + force: true # not required. When removing package - force remove package, without any checks. When update_cache - force redownload repo databases. + update_cache: true + become: yes + register: upgrade + +- debug: + var: upgrade + +- name: Reboot updates to apply + reboot: + reboot_timeout: 3600 + when: upgrade.changed and "linux" in upgrade.packages + become: yes + - name: launch base install software pacman: state: present # not required. choices: absent;latest;present. Desired state of the package. name: ['zsh','stow','nmap','rsync','awesome-terminal-fonts','wget','bat','diff-so-fancy','git','htop','thefuck','tldr','ntfs-3g','tmux','vim','zsh-theme-powerlevel9k' ] # not required. Name or list of names of the packages to install, upgrade, or remove. - update_cache: true # not required. Whether or not to refresh the master package lists. This can be run as part of a package installation or as a separate step. become: yes \ No newline at end of file