aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/pacman
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 12:03:30 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-25 12:03:30 +0100
commitde0a57525994b25bbefa892a46ea3955c35341ab (patch)
tree2b88d1cea26871a3971c93024a2eb7c828523162 /roles/pacman
parentworkflows/run: upgrade an action (diff)
downloadmaintenance-de0a57525994b25bbefa892a46ea3955c35341ab.tar.gz
maintenance-de0a57525994b25bbefa892a46ea3955c35341ab.zip
linting
Diffstat (limited to 'roles/pacman')
-rw-r--r--roles/pacman/tasks/main.yml22
1 files changed, 11 insertions, 11 deletions
diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml
index bbcdddc..acd2d31 100644
--- a/roles/pacman/tasks/main.yml
+++ b/roles/pacman/tasks/main.yml
@@ -1,16 +1,16 @@
- name: Check if pacman is installed
command: pacman --version
register: pacman_version
- changed_when: no
- failed_when: no
+ changed_when: false
+ failed_when: false
- when: pacman_version.rc == 0
- become: yes
+ become: true
block:
- name: Upgrade packages
community.general.pacman:
- update_cache: yes
- upgrade: yes
+ update_cache: true
+ upgrade: true
register: pacman_result
notify: reboot
@@ -30,8 +30,8 @@
args:
chdir: /etc
register: git_status
- changed_when: no
- failed_when: no
+ changed_when: false
+ failed_when: false
- fail:
msg: Upgrading packages failed for an unknown reason!
@@ -42,8 +42,8 @@
args:
chdir: /etc
register: only_gnupg
- changed_when: no
- failed_when: no
+ changed_when: false
+ failed_when: false
- name: Commit changes in /etc
command: |
@@ -52,8 +52,8 @@
- name: Upgrade packages after GPG keys
community.general.pacman:
- update_cache: yes
- upgrade: yes
+ update_cache: true
+ upgrade: true
register: pacman_result
notify: reboot