--- ################################################################################ # Created Date: Sunday December 21st 2025 # Author: Aaron Johnson aaron.johnson@akamai.com # ----- # Last Modified: Tuesday, 24th February 2026 # Modified By: the engineer formerly known as Aaron Johnson # ----- # Copyright (c) 2025 Contact Author for details # ----- # USAGE/DOCUMENTATION: # # ----- # INSTALLATION # # ----- # HISTORY: # Date By Comments # ---------- --- --------------------------------------------------------- ################################################################################ - name: Install acme.sh as acme user become_user: "{{ acme_user }}" shell: | curl https://get.acme.sh | sh args: creates: "{{ acme_home }}/.acme.sh/acme.sh" - name: Check if GoDaddy env file exists on remote hosts stat: path: "{{ acme_home }}/godaddy.env" register: godaddy_env_file - name: Create GoDaddy env file copy: dest: "{{ acme_home }}/godaddy.env" content: | export GD_Key={{ hostvars[inventory_hostname].gd_key }} export GD_Secret={{ hostvars[inventory_hostname].gd_secret }} owner: "{{ acme_user }}" group: "{{ acme_user }}" mode: "0400" when: - hostvars[inventory_hostname].gd_key is defined - gd_env_stat.stat.exists is not defined or not gd_env_stat.stat.exists