diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-26 16:17:50 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-26 16:17:50 +0100 |
commit | cd0db89e0a8eb389a305001171f6a835d3caa6fb (patch) | |
tree | 87607d4fdf1921365bee0e7f380c63fefbdf50fd /roles/snap | |
parent | my_server: one step instead of three (diff) | |
download | maintenance-cd0db89e0a8eb389a305001171f6a835d3caa6fb.tar.gz maintenance-cd0db89e0a8eb389a305001171f6a835d3caa6fb.zip |
shorten long command lines
Diffstat (limited to '')
-rw-r--r-- | roles/snap/tasks/main.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/snap/tasks/main.yml b/roles/snap/tasks/main.yml index 755a695..f3be9ba 100644 --- a/roles/snap/tasks/main.yml +++ b/roles/snap/tasks/main.yml @@ -9,7 +9,11 @@ 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-' + shell: | + git status --porcelain=v1 \ + | cut -c 4- \ + | grep -G -v '^systemd/system/' \ + | grep -G -v '/snap\.\|snap-' args: chdir: /etc register: only_snap |