disable gather_facts globally, give up on facts

mingi 10 eri varianti proovisin ja variandid on:
- üks host läheb 10s, gatherib kõike ja timeoutib zombie mountidega,
  ilmselgelt ei ole ainult cat /proc/cpuinfo
- ei kogu mitte midagi

võin siis juba käsitsi /proc/cpuinfo kallale minna, aga out of time
ja pole hetkel ega mõne aasta jooksul oluline
This commit is contained in:
2025-08-03 13:14:49 +03:00
parent 552f7eebff
commit c8193bcaca
4 changed files with 25 additions and 19 deletions

View File

@@ -3,8 +3,9 @@ inventory = inventory.yaml
nocows = 1 nocows = 1
pattern = pattern =
deprecation_warnings = False deprecation_warnings = False
fact_caching = jsonfile gathering = explicit
fact_caching_connection = ~/.ansible/k-space-fact-cache #fact_caching = jsonfile
#fact_caching_connection = ~/.ansible/k-space-fact-cache
fact_caching_timeout = 7200 fact_caching_timeout = 7200
remote_user = root remote_user = root

View File

@@ -6,7 +6,6 @@
- pve91.proxmox.infra.k-space.ee - pve91.proxmox.infra.k-space.ee
- pve92.proxmox.infra.k-space.ee - pve92.proxmox.infra.k-space.ee
- pve93.proxmox.infra.k-space.ee - pve93.proxmox.infra.k-space.ee
gather_facts: false
serial: 1 # one host at a time serial: 1 # one host at a time
tasks: tasks:

View File

@@ -1,9 +1,7 @@
--- ---
- name: PVE base configuration - name: PVE base configuration
hosts: proxmox hosts: proxmox
gather_facts: false
serial: 1 # one host at a time serial: 1 # one host at a time
tasks: tasks:
- name: UI primary IP (/etc/hosts) - name: UI primary IP (/etc/hosts)
tags: network tags: network
@@ -44,19 +42,28 @@
# adding non-free-firmware component currently left manual, as it is hard to do reliably across upgrades + format will change with next major upg + not planning to add new nodes atm # adding non-free-firmware component currently left manual, as it is hard to do reliably across upgrades + format will change with next major upg + not planning to add new nodes atm
- name: CPU microcode (Intel) #TODO: Whatever you do, Ansible wants to collect _all_ facts all the time.
tags: dep # - name: Collect processor facts
when: "'GenuineIntel' in ansible_processor" # ansible.builtin.setup:
apt: # gather_subset: "!all,!min,processor"
state: latest # - name: Show Gathered Facts
pkg: intel-microcode # debug:
# msg: "{{ ansible_facts }}"
- name: CPU microcode (AMD) #
tags: dep #
when: "'AuthenticAMD' in ansible_processor" # - name: CPU microcode (Intel)
apt: # tags: dep
state: latest # when: "'GenuineIntel' in ansible_processor"
pkg: amd64-microcode # apt:
# state: latest
# pkg: intel-microcode
#
# - name: CPU microcode (AMD)
# tags: dep
# when: "'AuthenticAMD' in ansible_processor"
# apt:
# state: latest
# pkg: amd64-microcode
- name: enable hardware watchdog - name: enable hardware watchdog
tags: dep tags: dep

View File

@@ -1,7 +1,6 @@
--- ---
- name: Checkout secrets - name: Checkout secrets
hosts: localhost hosts: localhost
gather_facts: false
tasks: tasks:
- name: Checkout secrets - name: Checkout secrets
ansible.builtin.git: ansible.builtin.git: