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:
@@ -3,8 +3,9 @@ inventory = inventory.yaml
|
||||
nocows = 1
|
||||
pattern =
|
||||
deprecation_warnings = False
|
||||
fact_caching = jsonfile
|
||||
fact_caching_connection = ~/.ansible/k-space-fact-cache
|
||||
gathering = explicit
|
||||
#fact_caching = jsonfile
|
||||
#fact_caching_connection = ~/.ansible/k-space-fact-cache
|
||||
|
||||
fact_caching_timeout = 7200
|
||||
remote_user = root
|
||||
|
@@ -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
|
||||
|
@@ -1,7 +1,6 @@
|
||||
---
|
||||
- name: Checkout secrets
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Checkout secrets
|
||||
ansible.builtin.git:
|
||||
|
Reference in New Issue
Block a user