From af20a792c5b3ef092e4544f06d87d96cb29447ea Mon Sep 17 00:00:00 2001 From: Wayne Warren Date: Tue, 28 May 2019 12:15:39 +0000 Subject: [PATCH] Address linter complaints. * Truthy values should be true or false rather than yes or no * Linter won't allow hard-coded 'latest' package state --- defaults/main.yml | 2 +- tasks/install-from-pypi.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 7eb4ac7..600144a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -27,7 +27,7 @@ certbot_create_standalone_stop_services: # - apache # - varnish -certbot_install_from_pypi: no +certbot_install_from_pypi: false certbot_pypi_version: latest # To install from source (on older OSes or if you need a specific or newer diff --git a/tasks/install-from-pypi.yml b/tasks/install-from-pypi.yml index 9eb9208..c7f3ce5 100644 --- a/tasks/install-from-pypi.yml +++ b/tasks/install-from-pypi.yml @@ -4,7 +4,7 @@ - certbot_pypi_version == "latest" pip: name: "{{ item }}" - state: latest + state: "{{ certbot_pypi_version }}" with_items: - certbot - certbot-nginx