aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/snap/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/snap/tasks/main.yml14
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'