From a06f018d04535366bccd7224f87065fcc6924747 Mon Sep 17 00:00:00 2001 From: Michael Schmitz Date: Wed, 13 Mar 2024 13:52:29 +0100 Subject: [PATCH] [#187229318] Entferne Consul Template --- defaults/main.yml | 3 --- tasks/consul_template.yml | 42 --------------------------------------- tasks/main.yml | 5 ----- 3 files changed, 50 deletions(-) delete mode 100644 tasks/consul_template.yml diff --git a/defaults/main.yml b/defaults/main.yml index 0c6e4a7..b7231ca 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,7 +10,4 @@ _consul: use_dnsmasq_forwarding: true download: consul_url: "https://releases.hashicorp.com/consul/1.12.9/consul_1.12.9_linux_amd64.zip" - consul_template_url: "https://releases.hashicorp.com/consul-template/0.19.0/consul-template_0.19.0_linux_amd64.zip" - template: - config_dir: "/etc/consul-template.d" logfile: "/var/log/consul.log" diff --git a/tasks/consul_template.yml b/tasks/consul_template.yml deleted file mode 100644 index da03d8c..0000000 --- a/tasks/consul_template.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -# vim: set ft=ansible: -- name: Install Consul Template - ansible.builtin.unarchive: - remote_src: yes - src: "{{ item }}" - dest: "/usr/local/bin" - with_items: - - "{{ _consul.download.consul_template_url }}" - -- name: Create Consul Template Config Directory - ansible.builtin.file: - name: "{{ _consul.template.config_dir }}" - state: directory - owner: "root" - group: "consul" - mode: "0755" - -- name: Create Consul Templates Directory - ansible.builtin.file: - name: "{{ _consul.template.config_dir }}/templates" - state: directory - owner: "root" - group: "consul" - mode: "0755" - -- name: Create Consul Template systemd Script - ansible.builtin.template: - src: "{{ item }}.j2" - dest: "/{{ item }}" - owner: "root" - group: "root" - mode: "0644" - with_items: - - "etc/systemd/system/consul-template.service" - -- name: Disable Consul Template Service autostart - ansible.builtin.service: - name: "{{ item }}" - enabled: no - with_items: - - "consul-template" diff --git a/tasks/main.yml b/tasks/main.yml index 80bd08b..aff9d1f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -79,8 +79,3 @@ name: dnsmasq state: restarted when: dnsmasq_consul is changed - -# Install Consul Template only when requested -- name: Install and configure Consul Template - ansible.builtin.include_tasks: consul_template.yml - when: _consul.template.install | default('false') | bool