Fix docker_image option for ansible < 2.8

This commit is contained in:
Dan Arnfield
2019-05-22 05:43:33 -05:00
parent 093859d926
commit 9c23d877fe
16 changed files with 16 additions and 16 deletions

View File

@ -36,7 +36,7 @@
- name: Ensure certbot Docker image is pulled
docker_image:
name: "{{ matrix_ssl_lets_encrypt_certbot_docker_image }}"
source: "pull"
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
when: "matrix_ssl_retrieval_method == 'lets-encrypt'"
- name: Obtain Let's Encrypt certificates