Fix some ansible-lint issues.

This commit is contained in:
Jeff Geerling 2019-03-23 19:19:36 -05:00
parent 7f16abdc29
commit 705852b851
4 changed files with 13 additions and 4 deletions

View File

@ -20,5 +20,7 @@
post_tasks:
- name: Confirm PHP version is correct.
shell: "php -v | grep -F '{{ php_version }}'"
shell: |
set -o pipefail
php -v | grep -F '{{ php_version }}'
changed_when: false

View File

@ -20,5 +20,7 @@
post_tasks:
- name: Confirm PHP version is correct.
shell: "php -v | grep -F '{{ php_version }}'"
shell: |
set -o pipefail
php -v | grep -F '{{ php_version }}'
changed_when: false

View File

@ -20,5 +20,7 @@
post_tasks:
- name: Confirm PHP version is correct.
shell: "php -v | grep -F '{{ php_version }}'"
shell: |
set -o pipefail
php -v | grep -F '{{ php_version }}'
changed_when: false

View File

@ -38,7 +38,10 @@
- name: Update apt caches after repo is added (Debian).
apt: update_cache=true
when: php_ondrej_debian_repo.changed and (ansible_distribution == "Debian")
when:
- php_ondrej_debian_repo.changed
- ansible_distribution == "Debian"
tags: ['skip_ansible_lint']
# PHP package purges.
- name: Purge PHP version packages.