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:
		@@ -6,7 +6,6 @@
 | 
			
		||||
    - pve91.proxmox.infra.k-space.ee
 | 
			
		||||
    - pve92.proxmox.infra.k-space.ee
 | 
			
		||||
    - pve93.proxmox.infra.k-space.ee
 | 
			
		||||
  gather_facts: false
 | 
			
		||||
  serial: 1  # one host at a time
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,7 @@
 | 
			
		||||
---
 | 
			
		||||
- name: PVE base configuration
 | 
			
		||||
  hosts: proxmox
 | 
			
		||||
  gather_facts: false
 | 
			
		||||
  serial: 1  # one host at a time
 | 
			
		||||
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: UI primary IP (/etc/hosts)
 | 
			
		||||
      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
 | 
			
		||||
 | 
			
		||||
    - name: CPU microcode (Intel)
 | 
			
		||||
      tags: dep
 | 
			
		||||
      when: "'GenuineIntel' in ansible_processor"
 | 
			
		||||
      apt:
 | 
			
		||||
        state: latest
 | 
			
		||||
        pkg: intel-microcode
 | 
			
		||||
 | 
			
		||||
    - name: CPU microcode (AMD)
 | 
			
		||||
      tags: dep
 | 
			
		||||
      when: "'AuthenticAMD' in ansible_processor"
 | 
			
		||||
      apt:
 | 
			
		||||
        state: latest
 | 
			
		||||
        pkg: amd64-microcode
 | 
			
		||||
    #TODO: Whatever you do, Ansible wants to collect _all_ facts all the time.
 | 
			
		||||
#    - name: Collect processor facts
 | 
			
		||||
#      ansible.builtin.setup:
 | 
			
		||||
#        gather_subset: "!all,!min,processor"
 | 
			
		||||
#    - name: Show Gathered Facts
 | 
			
		||||
#      debug:
 | 
			
		||||
#        msg: "{{ ansible_facts }}"
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
#    - name: CPU microcode (Intel)
 | 
			
		||||
#      tags: dep
 | 
			
		||||
#      when: "'GenuineIntel' in ansible_processor"
 | 
			
		||||
#      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
 | 
			
		||||
      tags: dep
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user