From e2b907ba54e1353b816051ba1f02a0003530e61a Mon Sep 17 00:00:00 2001 From: Charlie O'Keefe Date: Wed, 21 Mar 2018 10:50:01 -0600 Subject: [PATCH] Change 'always_run: yes' to 'check_mode: no' Removes some deprecation warnings in ansible output --- roles/common/tasks/add_github_ssh_hostkey.yml | 2 +- roles/common/tasks/update_everything.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/common/tasks/add_github_ssh_hostkey.yml b/roles/common/tasks/add_github_ssh_hostkey.yml index 1769b58..c08cc95 100644 --- a/roles/common/tasks/add_github_ssh_hostkey.yml +++ b/roles/common/tasks/add_github_ssh_hostkey.yml @@ -3,7 +3,7 @@ local_action: command ssh-keyscan -t rsa github.com register: github_ssh_keyscan_result changed_when: false - always_run: yes + check_mode: no run_once: yes become: no diff --git a/roles/common/tasks/update_everything.yml b/roles/common/tasks/update_everything.yml index 6a0bebc..36af9bd 100644 --- a/roles/common/tasks/update_everything.yml +++ b/roles/common/tasks/update_everything.yml @@ -8,7 +8,7 @@ failed_when: false changed_when: false # Necessary to support --check mode - always_run: true + check_mode: no - name: Install sudo. apt: