system/tasks/base_software.yml

36 lines
1.5 KiB
YAML
Raw Normal View History

2020-01-07 19:44:20 +00:00
- name: upgrade system
pacman:
2020-01-07 19:44:20 +00:00
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.
2019-04-10 18:27:12 +00:00
become: yes
2020-01-07 19:44:20 +00:00
when: system_upgrade
2019-10-24 19:16:17 +00:00
- 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
2020-01-07 19:44:20 +00:00
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