diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-04 23:49:46 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-04 23:49:46 +0200 |
commit | c5e3b4e6336ec3843baba63016c04695ca3ef39f (patch) | |
tree | 36829e243f1d8eb779708173e4ed26eac81a5ff1 /roles/snap | |
parent | remove trailing whitespace (diff) | |
download | maintenance-c5e3b4e6336ec3843baba63016c04695ca3ef39f.tar.gz maintenance-c5e3b4e6336ec3843baba63016c04695ca3ef39f.zip |
rename tasks
Diffstat (limited to 'roles/snap')
-rw-r--r-- | roles/snap/tasks/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/snap/tasks/main.yml b/roles/snap/tasks/main.yml index 46fd3c5..007dbbe 100644 --- a/roles/snap/tasks/main.yml +++ b/roles/snap/tasks/main.yml @@ -7,7 +7,7 @@ - become: yes when: snap_version.rc == 0 and etc_versioned block: - - name: There are uncommitted changes + - name: Check for changes in /etc command: git status --porcelain=v1 args: chdir: /etc @@ -15,7 +15,7 @@ changed_when: no failed_when: no - - name: All changes are snap changes + - 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 @@ -23,6 +23,6 @@ changed_when: no failed_when: no - - name: Commit snap changes + - name: Commit changes in /etc command: etckeeper commit 'after snap run' when: git_status.stdout and only_snap.rc != 0 |