diff options
-rw-r--r-- | maintenance.yml | 2 | ||||
-rw-r--r-- | roles/snap/tasks/main.yml | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/maintenance.yml b/maintenance.yml index d6e4040..a2903ab 100644 --- a/maintenance.yml +++ b/maintenance.yml @@ -3,7 +3,7 @@ roles: - common - dotfiles - - {role: snap, when: has_snap} + - {role: snap, when: has_snap and etc_versioned} - {role: apt, when: has_apt} - {role: pacman, when: has_pacman} - {role: yay, when: has_yay} diff --git a/roles/snap/tasks/main.yml b/roles/snap/tasks/main.yml index 5cb2fd2..755a695 100644 --- a/roles/snap/tasks/main.yml +++ b/roles/snap/tasks/main.yml @@ -1,11 +1,4 @@ -- name: Check if snap is installed - command: snap --version - register: snap_version - changed_when: false - failed_when: false - - become: true - when: snap_version.rc == 0 and etc_versioned block: - name: Check for changes in /etc command: git status --porcelain=v1 |