mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 09:53:41 -05:00
fix(ansible): add FQDN to ansible tasks
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
- nodateext
|
||||
- nocreate
|
||||
- delaycompress
|
||||
import_role:
|
||||
ansible.builtin.import_role:
|
||||
name: arillso.logrotate
|
||||
failed_when: false
|
||||
ignore_errors: true
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user