aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--roles/pacman/tasks/main.yml3
-rw-r--r--roles/snap/tasks/main.yml3
2 files changed, 4 insertions, 2 deletions
diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml
index 37885f3..2d099d5 100644
--- a/roles/pacman/tasks/main.yml
+++ b/roles/pacman/tasks/main.yml
@@ -31,6 +31,7 @@
chdir: /etc
register: git_status
changed_when: no
+ failed_when: no
- fail:
msg: Upgrading packages failed for an unknown reason!
@@ -42,7 +43,7 @@
chdir: /etc
register: only_gnupg
changed_when: no
- ignore_errors: yes
+ failed_when: no
- name: Commit pacman.d/gnupg
command: |
diff --git a/roles/snap/tasks/main.yml b/roles/snap/tasks/main.yml
index ea0f557..0f899a8 100644
--- a/roles/snap/tasks/main.yml
+++ b/roles/snap/tasks/main.yml
@@ -13,6 +13,7 @@
chdir: /etc
register: git_status
changed_when: no
+ failed_when: no
- name: All changes are snap changes
shell: git status --porcelain=v1 | cut -c 4- | grep -G -v '^systemd/system/' | grep -G -v '/snap\.\|snap-'
@@ -20,7 +21,7 @@
chdir: /etc
register: only_snap
changed_when: no
- ignore_errors: yes
+ failed_when: no
- name: Commit snap changes
command: etckeeper commit 'after snap run'