Disable a ton of fact gathering -- I anticipate this will fail at CI
This commit is contained in:
parent
16ec5ed2e0
commit
3dfd06cbdb
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: assure scanner user
|
- name: assure scanner user
|
||||||
user: name=scanner password="!" state=present
|
user: name=scanner password="!" state=present
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
# Preambulatory system configuration
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: collect service facts
|
|
||||||
service_facts:
|
|
||||||
tags: [ always ]
|
|
||||||
- name: touch ansible timestamp file
|
- name: touch ansible timestamp file
|
||||||
file: path=/var/lib/ansible-last-run state=touch mode='0644'
|
file: path=/var/lib/ansible-last-run state=touch mode='0644'
|
||||||
changed_when: no
|
changed_when: no
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
---
|
---
|
||||||
# Home desktops
|
# Home desktops
|
||||||
- hosts: device_roles_bastion
|
- hosts: device_roles_bastion
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
vars:
|
vars:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: device_roles_game
|
- hosts: device_roles_game
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
vars:
|
vars:
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# Webservers
|
# Webservers
|
||||||
---
|
---
|
||||||
- hosts: vm-bot-1.home.mgmt.desu.ltd
|
- hosts: vm-bot-1.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
@ -22,6 +23,7 @@
|
|||||||
- /data
|
- /data
|
||||||
tags: [ backup ]
|
tags: [ backup ]
|
||||||
- hosts: vm-scan-1.home.mgmt.desu.ltd
|
- hosts: vm-scan-1.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
@ -44,6 +46,7 @@
|
|||||||
- /data
|
- /data
|
||||||
tags: [ backup ]
|
tags: [ backup ]
|
||||||
- hosts: vm-syncthing-1.home.mgmt.desu.ltd
|
- hosts: vm-syncthing-1.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
---
|
---
|
||||||
# Home media storage Pi
|
# Home media storage Pi
|
||||||
- hosts: pi-homeauto-1.home.mgmt.desu.ltd
|
- hosts: pi-homeauto-1.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# Game servers
|
# Game servers
|
||||||
---
|
---
|
||||||
- hosts: vm-minecraft-1.home.mgmt.desu.ltd
|
- hosts: vm-minecraft-1.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: include tasks for gameservers
|
- name: include tasks for gameservers
|
||||||
include_tasks: tasks/game/{{ item }}
|
include_tasks: tasks/game/{{ item }}
|
||||||
@ -21,6 +22,7 @@
|
|||||||
- /data/minecraft/botaniapack2-creative/backups
|
- /data/minecraft/botaniapack2-creative/backups
|
||||||
tags: [ backup ]
|
tags: [ backup ]
|
||||||
- hosts: vm-minecraft-2.home.mgmt.desu.ltd
|
- hosts: vm-minecraft-2.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: include tasks for gameservers
|
- name: include tasks for gameservers
|
||||||
include_tasks: tasks/game/{{ item }}
|
include_tasks: tasks/game/{{ item }}
|
||||||
@ -37,6 +39,7 @@
|
|||||||
- /data/minecraft/enigmatica6/backups
|
- /data/minecraft/enigmatica6/backups
|
||||||
tags: [ backup ]
|
tags: [ backup ]
|
||||||
- hosts: vm-terraria-1.home.mgmt.desu.ltd
|
- hosts: vm-terraria-1.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: include tasks for gameservers
|
- name: include tasks for gameservers
|
||||||
include_tasks: tasks/game/{{ item }}
|
include_tasks: tasks/game/{{ item }}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: vm-media-1.home.mgmt.desu.ltd
|
- hosts: vm-media-1.home.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
---
|
---
|
||||||
# General configuration
|
# General configuration
|
||||||
- hosts: manufacturers_raspi
|
- hosts: manufacturers_raspi
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: install raspi packages
|
- name: install raspi packages
|
||||||
apt:
|
apt:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: platforms_proxmox-ve-7
|
- hosts: platforms_proxmox-ve-7
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
vars:
|
vars:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: platforms_ub2004
|
- hosts: platforms_ub2004
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: motd
|
- role: motd
|
||||||
vars:
|
vars:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: platforms_ub2110
|
- hosts: platforms_ub2110
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: motd
|
- role: motd
|
||||||
vars:
|
vars:
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# Webservers
|
# Webservers
|
||||||
---
|
---
|
||||||
- hosts: com1.dallas.mgmt.desu.ltd
|
- hosts: com1.dallas.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# Game servers
|
# Game servers
|
||||||
---
|
---
|
||||||
- hosts: vm-game-1.dallas.mgmt.desu.ltd
|
- hosts: vm-game-1.dallas.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: include tasks for gameservers
|
- name: include tasks for gameservers
|
||||||
include_tasks: tasks/game/{{ item }}
|
include_tasks: tasks/game/{{ item }}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# Webservers
|
# Webservers
|
||||||
---
|
---
|
||||||
- hosts: web1.dallas.mgmt.desu.ltd
|
- hosts: web1.dallas.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
@ -78,6 +79,7 @@
|
|||||||
proxy_pass: http://srv:80
|
proxy_pass: http://srv:80
|
||||||
tags: [ web, docker, ingress ]
|
tags: [ web, docker, ingress ]
|
||||||
- hosts: web2.dallas.mgmt.desu.ltd
|
- hosts: web2.dallas.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
@ -133,6 +135,7 @@
|
|||||||
}
|
}
|
||||||
tags: [ web, docker, ingress ]
|
tags: [ web, docker, ingress ]
|
||||||
- hosts: web3.dallas.mgmt.desu.ltd
|
- hosts: web3.dallas.mgmt.desu.ltd
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
docker_container:
|
docker_container:
|
||||||
state: started
|
state: started
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: tags_ansible-pull
|
- hosts: tags_ansible-pull
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-pull
|
- role: ansible-pull
|
||||||
vars:
|
vars:
|
||||||
@ -15,6 +16,7 @@
|
|||||||
dest: /etc/ansible
|
dest: /etc/ansible
|
||||||
tags: [ ansible ]
|
tags: [ ansible ]
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: disable ansible-pull when not tagged
|
- name: disable ansible-pull when not tagged
|
||||||
systemd: name={{ item }} state=stopped enabled=no
|
systemd: name={{ item }} state=stopped enabled=no
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: tags_ansible
|
- hosts: tags_ansible
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: ansible
|
- role: ansible
|
||||||
tags: [ ansible ]
|
tags: [ ansible ]
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: tags_autoreboot
|
- hosts: tags_autoreboot
|
||||||
|
gather_facts: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
nagios:
|
nagios:
|
||||||
author: Ansible
|
author: Ansible
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: tags_docker-prune
|
- hosts: tags_docker-prune
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: prune old docker assets
|
- name: prune old docker assets
|
||||||
community.docker.docker_prune:
|
community.docker.docker_prune:
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: tags_nagios
|
- hosts: tags_nagios
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: git
|
- role: git
|
||||||
vars:
|
vars:
|
||||||
@ -35,6 +36,7 @@
|
|||||||
- /usr/local/bin/monitoring-scripts/check_temp
|
- /usr/local/bin/monitoring-scripts/check_temp
|
||||||
tags: [ nagios, sudo ]
|
tags: [ nagios, sudo ]
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: disable nagios user when not tagged
|
- name: disable nagios user when not tagged
|
||||||
user: name=nagios-checker state=absent remove=yes
|
user: name=nagios-checker state=absent remove=yes
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: tags_snmp
|
- hosts: tags_snmp
|
||||||
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: oefenweb.snmpd
|
- role: oefenweb.snmpd
|
||||||
vars:
|
vars:
|
||||||
@ -20,6 +21,7 @@
|
|||||||
snmpd_disks_include_all_threshold_minpercent: "10%"
|
snmpd_disks_include_all_threshold_minpercent: "10%"
|
||||||
tags: [ snmp ]
|
tags: [ snmp ]
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: disable snmpd when not tagged
|
- name: disable snmpd when not tagged
|
||||||
systemd: name={{ item }} state=stopped enabled=no
|
systemd: name={{ item }} state=stopped enabled=no
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
become_user: ansible
|
become_user: ansible
|
||||||
- name: install ansible
|
- name: install ansible
|
||||||
pip: name=ansible<5,ansible-lint state=latest
|
pip: name=ansible<5,ansible-lint state=latest
|
||||||
when: ansible_os_family != "Gentoo"
|
|
||||||
- name: configure systemd service
|
- name: configure systemd service
|
||||||
template: src=ansible-pull.service dest=/etc/systemd/system/ansible-pull.service mode=0644
|
template: src=ansible-pull.service dest=/etc/systemd/system/ansible-pull.service mode=0644
|
||||||
- name: configure systemd timer
|
- name: configure systemd timer
|
||||||
|
@ -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.
|
|
@ -2,4 +2,3 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
- name: install ansible
|
- name: install ansible
|
||||||
pip: name=ansible<5,ansible-lint state=latest
|
pip: name=ansible<5,ansible-lint state=latest
|
||||||
when: ansible_os_family != "Gentoo"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user