fix(ansible): add FQDN to ansible tasks

This commit is contained in:
Nathaniel Landau
2022-10-07 14:41:11 -04:00
parent f5497c0983
commit 0d92a7e879
7 changed files with 37 additions and 35 deletions

View File

@@ -1,34 +1,34 @@
---
# - name: architecture
# debug:
# ansible.builtin.debug:
# var: ansible_facts['architecture']
# - name: distribution
# debug:
# ansible.builtin.debug:
# var: ansible_facts['distribution']
# - name: distribution_file_variety
# debug:
# ansible.builtin.debug:
# var: ansible_facts['distribution_file_variety']
# - name: service_mgr
# debug:
# ansible.builtin.debug:
# var: ansible_facts['service_mgr']
# - name: os_family
# debug:
# ansible.builtin.debug:
# var: ansible_facts['os_family']
# - debug:
# - ansible.builtin.debug:
# msg: "{{ ansible_os_family }}"
# - debug:
# - ansible.builtin.debug:
# msg: "pass: {{ ansible_become_pass }}"
# - debug:
# - ansible.builtin.debug:
# var: ansible_facts['nodename']
# - debug:
# - ansible.builtin.debug:
# var: ansible_facts['system_vendor']
# when:
# - ansible_facts['system_vendor'] is search("Synology")

View File

@@ -23,7 +23,7 @@
- nodateext
- nocreate
- delaycompress
import_role:
ansible.builtin.import_role:
name: arillso.logrotate
failed_when: false
ignore_errors: true

View File

@@ -29,7 +29,7 @@
failed_when: pull_script_output.rc > 1
- name: "Output from pull_all_repos"
debug:
ansible.builtin.debug:
msg: "{{ pull_script_output.stdout }}"
when:
- not ansible_check_mode

View File

@@ -5,7 +5,7 @@
# NOTE: This is depreciated, I no longer use Prometheus and have migrated to Telegraf
- name: populate service facts
service_facts:
ansible.builtin.service_facts:
- name: stop node_exporter
become: true
@@ -30,7 +30,7 @@
# --------------- Install or Update Prometheus
- name: "set fact: need to install Prometheus?"
set_fact:
ansible.builtin.set_fact:
need_prometheus_install: false
- name: Check if node_exporter is installed
@@ -39,7 +39,7 @@
register: prometheus_binary_file_location
- name: "set fact: need to install Prometheus?"
set_fact:
ansible.builtin.set_fact:
need_prometheus_install: true
when:
- not prometheus_binary_file_location.stat.exists
@@ -53,7 +53,7 @@
- need_prometheus_install is false
- name: "set fact: need to install Prometheus?"
set_fact:
ansible.builtin.set_fact:
need_prometheus_install: true
when:
- need_prometheus_install is false

View File

@@ -38,7 +38,7 @@
- mac_arm
- name: "set fact: do we need a tdarr install?"
set_fact:
ansible.builtin.set_fact:
need_tdarr_install: false
- name: Assert that we can install Tdarr
@@ -90,7 +90,7 @@
failed_when: false
- name: "set fact: do we need a tdarr install?"
set_fact:
ansible.builtin.set_fact:
need_tdarr_install: true
when: not tdarr_exists.stat.exists
@@ -186,4 +186,4 @@
- consul_agent_reload_http_response.status != 200
- name: mount shared storage
import_tasks: cluster_storage.yml
ansible.builtin.import_tasks: cluster_storage.yml