Skip to content

Commit

Permalink
Lint: Fix `[301] Commands should not change things if nothing needs d…
Browse files Browse the repository at this point in the history
…oing`
  • Loading branch information
tangrufus committed Feb 16, 2020
1 parent 82438ad commit fec1a48
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/common/tasks/reload_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- name: reload nginx
command: nginx -t
notify: "{{ (role_path | basename == 'common') | ternary('perform nginx reload', omit) }}"
changed_when: false

- name: perform nginx reload
service:
Expand Down
2 changes: 2 additions & 0 deletions roles/rollback/tasks/prior-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
args:
chdir: "{{ project_root }}"
register: current_release_position
changed_when: false

- name: Fail if current release is the oldest available release
fail:
Expand All @@ -15,6 +16,7 @@
args:
chdir: "{{ project_root }}"
register: releases
changed_when: false

- name: Create new_release_path variable
set_fact:
Expand Down
1 change: 1 addition & 0 deletions roles/rollback/tasks/user-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
args:
chdir: "{{ project_root }}"
register: current_release
changed_when: false

- name: Fail if user-specified release doesn't exist or is already active
fail:
Expand Down
1 change: 1 addition & 0 deletions roles/xdebug-tunnel/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
become: no
register: xdebug_tunnel
ignore_errors: true
changed_when: false

- name: Interpret and present Xdebug SSH tunnel errors
fail:
Expand Down

0 comments on commit fec1a48

Please sign in to comment.