- set_fact: key_file=/etc/pki/tls/private/{{ website_domain }}.key cert_file=/etc/pki/tls/certs/{{ website_domain }}.crt

- fail: "A certificate can only be requested for the current server with the freeipa method"
  when: website_domain != ansible_fqdn

- command: creates={{ key_file }} ipa-getcert request -f {{ cert_file }} -k {{ key_file }} -D {{ ansible_fqdn }} -K host/{{ ansible_fqdn }}

- include: common_ssl.yml

- set_fact: key_file=/etc/pki/tls/private/{{ website_domain }}.key cert_file=/etc/pki/tls/certs/{{ website_domain }}.crt

- fail: msg="A certificate can only be requested for the current server with the freeipa method"
  when: website_domain != ansible_fqdn

- command: creates={{ key_file }} ipa-getcert request -f {{ cert_file }} -k {{ key_file }} -D {{ ansible_fqdn }} -K host/{{ ansible_fqdn }}

- include: common_ssl.yml

Fix the fail module call
Fix the fail module call
