Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint: Fix [301] Commands should not change things if nothing needs doing #1139

Merged
merged 4 commits into from
Feb 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Nginx: Block `composer/installed.json` ([#1150](https://github.com/roots/trellis/pull/1150))
* Run `git clean` after checking `git clone` is successful ([#1151](https://github.com/roots/trellis/pull/1151))
* Lint: Fix: `[206] Variables should have spaces before and after: {{ var_name }}` ([#1152](https://github.com/roots/trellis/pull/1152))
* Lint: Fix `[301] Commands should not change things if nothing needs doing ([#1139](https://github.com/roots/trellis/pull/1139))

### 1.3.0: December 7th, 2019
* Add `git_sha` and `release_version` to `.env` on deploy ([#1124](https://github.com/roots/trellis/pull/1124))
Expand Down
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: true

- 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: true

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