add upgrade could
This commit is contained in:
parent
846c600b11
commit
1f53013a4f
@ -41,3 +41,6 @@ system_base_softwares:
|
||||
- 'unzip'
|
||||
- 'unrar'
|
||||
- 'git-lfs'
|
||||
|
||||
|
||||
system_upgrade: false
|
@ -1,20 +1,3 @@
|
||||
#- 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:
|
||||
@ -26,3 +9,19 @@
|
||||
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
|
||||
|
||||
- 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: false
|
||||
become: yes
|
||||
when: system_upgrade
|
||||
register: upgrade
|
||||
|
||||
- name: Reboot updates to apply
|
||||
reboot:
|
||||
reboot_timeout: 3600
|
||||
when: upgrade.changed and "linux" in upgrade.packages and system_upgrade
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user