diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-25 12:03:30 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-25 12:03:30 +0100 |
commit | de0a57525994b25bbefa892a46ea3955c35341ab (patch) | |
tree | 2b88d1cea26871a3971c93024a2eb7c828523162 /roles/snap/tasks | |
parent | workflows/run: upgrade an action (diff) | |
download | maintenance-de0a57525994b25bbefa892a46ea3955c35341ab.tar.gz maintenance-de0a57525994b25bbefa892a46ea3955c35341ab.zip |
linting
Diffstat (limited to 'roles/snap/tasks')
-rw-r--r-- | roles/snap/tasks/main.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/roles/snap/tasks/main.yml b/roles/snap/tasks/main.yml index 007dbbe..5cb2fd2 100644 --- a/roles/snap/tasks/main.yml +++ b/roles/snap/tasks/main.yml @@ -1,10 +1,10 @@ - name: Check if snap is installed command: snap --version register: snap_version - changed_when: no - failed_when: no + changed_when: false + failed_when: false -- become: yes +- become: true when: snap_version.rc == 0 and etc_versioned block: - name: Check for changes in /etc @@ -12,16 +12,16 @@ args: chdir: /etc register: git_status - changed_when: no - failed_when: no + changed_when: false + failed_when: false - name: All changes in /etc are snap changes? shell: git status --porcelain=v1 | cut -c 4- | grep -G -v '^systemd/system/' | grep -G -v '/snap\.\|snap-' args: chdir: /etc register: only_snap - changed_when: no - failed_when: no + changed_when: false + failed_when: false - name: Commit changes in /etc command: etckeeper commit 'after snap run' |