From 45da977dc06b718b4752baf9ed916de4028d07cc Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 7 Jan 2020 20:44:20 +0100 Subject: [PATCH] modif upgrade --- tasks/base_software.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/tasks/base_software.yml b/tasks/base_software.yml index e79d305..51fabf6 100644 --- a/tasks/base_software.yml +++ b/tasks/base_software.yml @@ -1,14 +1,10 @@ - -- name: launch base install software +- name: upgrade system pacman: - state: present # not required. choices: absent;latest;present. Desired state of the package. - name: "{{system_base_softwares}}" + state: latest # not required. choices: absent;latest;present. Desired state of the package. + name: archlinux-keyring # 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. become: yes - -- name: install powerline status via pip - pip: - name: powerline-status # not required. The name of a Python library to install or the url(bzr+,hg+,git+,svn+) of the remote package.,This can be a list (since 2.2) and contain version specifiers (since 2.7). - extra_args: --user + when: system_upgrade - name: upgrade system pacman: @@ -24,4 +20,16 @@ reboot: reboot_timeout: 3600 when: upgrade.changed and "linux" in upgrade.packages and system_upgrade - become: yes \ No newline at end of file + become: yes + +- name: launch base install software + pacman: + state: present # not required. choices: absent;latest;present. Desired state of the package. + name: "{{system_base_softwares}}" + become: yes + +- name: install powerline status via pip + pip: + name: powerline-status # not required. The name of a Python library to install or the url(bzr+,hg+,git+,svn+) of the remote package.,This can be a list (since 2.2) and contain version specifiers (since 2.7). + extra_args: --user +