diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-26 16:17:06 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-26 16:17:06 +0100 |
commit | 0a5e0acb7fed7ca5804c849d40f373d1c05936c3 (patch) | |
tree | 6ca8b323d00687b9b944b1f661c2aa10aad4bab4 | |
parent | add role dotfiles (diff) | |
download | maintenance-0a5e0acb7fed7ca5804c849d40f373d1c05936c3.tar.gz maintenance-0a5e0acb7fed7ca5804c849d40f373d1c05936c3.zip |
snap: forgot to remove the extra conditional
Diffstat (limited to '')
-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 |