Disable a ton of fact gathering -- I anticipate this will fail at CI

This commit is contained in:
Salt 2022-02-15 15:19:34 -06:00
parent 16ec5ed2e0
commit 3dfd06cbdb
24 changed files with 30 additions and 9 deletions

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: all
gather_facts: no
tasks:
- name: assure scanner user
user: name=scanner password="!" state=present

View File

@ -1,12 +1,9 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
# Preambulatory system configuration
- hosts: all
gather_facts: no
tasks:
- name: collect service facts
service_facts:
tags: [ always ]
- name: touch ansible timestamp file
file: path=/var/lib/ansible-last-run state=touch mode='0644'
changed_when: no

View File

@ -3,6 +3,7 @@
---
# Home desktops
- hosts: device_roles_bastion
gather_facts: no
roles:
- role: backup
vars:

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: device_roles_game
gather_facts: no
roles:
- role: backup
vars:

View File

@ -3,6 +3,7 @@
# Webservers
---
- hosts: vm-bot-1.home.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started
@ -22,6 +23,7 @@
- /data
tags: [ backup ]
- hosts: vm-scan-1.home.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started
@ -44,6 +46,7 @@
- /data
tags: [ backup ]
- hosts: vm-syncthing-1.home.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started

View File

@ -3,6 +3,7 @@
---
# Home media storage Pi
- hosts: pi-homeauto-1.home.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started

View File

@ -3,6 +3,7 @@
# Game servers
---
- hosts: vm-minecraft-1.home.mgmt.desu.ltd
gather_facts: no
pre_tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ item }}
@ -21,6 +22,7 @@
- /data/minecraft/botaniapack2-creative/backups
tags: [ backup ]
- hosts: vm-minecraft-2.home.mgmt.desu.ltd
gather_facts: no
pre_tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ item }}
@ -37,6 +39,7 @@
- /data/minecraft/enigmatica6/backups
tags: [ backup ]
- hosts: vm-terraria-1.home.mgmt.desu.ltd
gather_facts: no
pre_tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ item }}

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: vm-media-1.home.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started

View File

@ -3,6 +3,7 @@
---
# General configuration
- hosts: manufacturers_raspi
gather_facts: no
tasks:
- name: install raspi packages
apt:

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: platforms_proxmox-ve-7
gather_facts: no
roles:
- role: backup
vars:

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: platforms_ub2004
gather_facts: no
roles:
- role: motd
vars:

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: platforms_ub2110
gather_facts: no
roles:
- role: motd
vars:

View File

@ -3,6 +3,7 @@
# Webservers
---
- hosts: com1.dallas.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started

View File

@ -3,6 +3,7 @@
# Game servers
---
- hosts: vm-game-1.dallas.mgmt.desu.ltd
gather_facts: no
tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ item }}

View File

@ -3,6 +3,7 @@
# Webservers
---
- hosts: web1.dallas.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started
@ -78,6 +79,7 @@
proxy_pass: http://srv:80
tags: [ web, docker, ingress ]
- hosts: web2.dallas.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started
@ -133,6 +135,7 @@
}
tags: [ web, docker, ingress ]
- hosts: web3.dallas.mgmt.desu.ltd
gather_facts: no
module_defaults:
docker_container:
state: started

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: tags_ansible-pull
gather_facts: no
roles:
- role: ansible-pull
vars:
@ -15,6 +16,7 @@
dest: /etc/ansible
tags: [ ansible ]
- hosts: all
gather_facts: no
tasks:
- name: disable ansible-pull when not tagged
systemd: name={{ item }} state=stopped enabled=no

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: tags_ansible
gather_facts: no
roles:
- role: ansible
tags: [ ansible ]

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: tags_autoreboot
gather_facts: no
module_defaults:
nagios:
author: Ansible

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: tags_docker-prune
gather_facts: no
tasks:
- name: prune old docker assets
community.docker.docker_prune:

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: tags_nagios
gather_facts: no
roles:
- role: git
vars:
@ -35,6 +36,7 @@
- /usr/local/bin/monitoring-scripts/check_temp
tags: [ nagios, sudo ]
- hosts: all
gather_facts: no
tasks:
- name: disable nagios user when not tagged
user: name=nagios-checker state=absent remove=yes

View File

@ -2,6 +2,7 @@
# vim:ft=ansible:
---
- hosts: tags_snmp
gather_facts: no
roles:
- role: oefenweb.snmpd
vars:
@ -20,6 +21,7 @@
snmpd_disks_include_all_threshold_minpercent: "10%"
tags: [ snmp ]
- hosts: all
gather_facts: no
tasks:
- name: disable snmpd when not tagged
systemd: name={{ item }} state=stopped enabled=no

View File

@ -6,7 +6,6 @@
become_user: ansible
- name: install ansible
pip: name=ansible<5,ansible-lint state=latest
when: ansible_os_family != "Gentoo"
- name: configure systemd service
template: src=ansible-pull.service dest=/etc/systemd/system/ansible-pull.service mode=0644
- name: configure systemd timer

View File

@ -1,3 +0,0 @@
# ansible-pull
This role configures and enables a period `ansible-pull` task through systemd, allowing for machines to ensure proper configuration periodically and of their own volition.

View File

@ -2,4 +2,3 @@
# vim:ft=ansible:
- name: install ansible
pip: name=ansible<5,ansible-lint state=latest
when: ansible_os_family != "Gentoo"