deprecation fixes

Sun, 14 Jul 2019 04:03:48 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 14 Jul 2019 04:03:48 -0500
changeset 93
14e0c774b916
parent 92
3166d16a94b9
child 94
3879346354aa

deprecation fixes

roles/devbox/tasks/dist-debian.yml file | annotate | diff | comparison | revisions
roles/user/tasks/main.yml file | annotate | diff | comparison | revisions
--- a/roles/devbox/tasks/dist-debian.yml
+++ b/roles/devbox/tasks/dist-debian.yml
@@ -10,7 +10,7 @@
 - name: Install base packages
   tags: packages, install
   apt:
-    state: installed
+    state: present
     name:
       - build-essential
       - git
@@ -26,7 +26,7 @@
   tags: packages, install
   when: gui_enabled
   apt:
-    state: installed
+    state: present
     name:
       - lightdm
       - rxvt-unicode-256color
--- a/roles/user/tasks/main.yml
+++ b/roles/user/tasks/main.yml
@@ -54,7 +54,7 @@
   args:
     chdir: "{{ user.home }}"
   register: update_dotfiles
-  changed_when: update_dotfiles.stdout | match("added|updated")
+  changed_when: update_dotfiles.stdout is match("added|updated")
   failed_when: update_dotfiles.rc > 1
   tags: user, dotfiles
 
@@ -65,6 +65,6 @@
   args:
     chdir: "{{ user.home }}"
   register: homedir_setup
-  changed_when: homedir_setup.stdout | match("Updating|Cloning")
+  changed_when: homedir_setup.stdout is match("Updating|Cloning")
   failed_when: homedir_setup.rc != 0
   tags: user, dotfiles

mercurial