]> git.somenet.org - root/pub/somesible.git/blob - site_base.yml
roles/base/munin-node/files
[root/pub/somesible.git] / site_base.yml
1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
6 #
7 #
8 # Playbook for provisioning the base-meta-role for all hosts. Also a reference of our vars.
9 #
10 # This playbook will be executed always: This is a speed optimization.
11 # Host-specific playbooks are meant to extend the base.
12 #
13 ---
14 # TODO: WakeOnLan and wait for the boxes to become ready and continue playbook
15 #- hosts: all
16 #  gather_facts: no
17 #  tasks:
18 #  - name: Send magic Wake-On-Lan packet to turn on individual systems
19 #    wakeonlan:
20 #      mac: "{{wol_mac}}"
21 #    delegate_to: localhost
22 #  - when: wol mac, wolip set
23 #
24 #  - name: Wait for system to become reachable
25 #    wait_for_connection:
26 #    - timeout: 600
27 # - test only 5 sec
28 #
29
30 - hosts: all
31   become: true
32 # set in inventory file for now.
33 #  vars:
34 #  # Intended to only be overridden in the commandline, for self-healing - ignore, if we are down.
35 #  - ignore_online_errors: False
36   roles:
37   - { role: custom-command, tags: 'cc', when: 'cc is defined' }
38   - { role: cleanup, tags: ['cleanup'], when: 'not cc is defined and cleanup_level|int > 0' }
39   - { role: base, tags: ['base'], when: 'not cc is defined' }