git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/patch.yaml
blob: 3ab323de9f0d88c5e74c1d5dfbbf9687879ca9d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
# You may want to change the default to your favourite host (group) you run this on the most.
- hosts: "{{ rthosts | default('CHANGE_ME') }}"
  order: inventory
  gather_facts: false
  # default: all in first step, but that shit requires (int)
  serial: 666
  tasks:
  - name: Gather necessary facts
    ansible.builtin.setup:
      filter: "ansible_distribution*"
  - name: Group hosts by distribution file variety
    group_by:
      # We choose to lowercase anything here as there should be no collisions but
      # SUSE could be "SuSE" or "SUSE" (assumed and unverified, but you never know...)
      key: "adfv_{{ ansible_distribution_file_variety | lower | default('none') }}"
  tags:
    - all
- hosts: adfv_debian
  order: inventory
  gather_facts: false
  # default: all in first step, but that shit requires (int)
  serial: 666
  tasks:
  - name: Debian Patches
    ansible.builtin.import_role:
      name: "patch_debian"
  tags:
    - debian
- hosts: adfv_redhat
  order: inventory
  gather_facts: false
  # default: all in first step, but that shit requires (int)
  serial: 666
  tasks:
  - name: Red Hat Patches
    ansible.builtin.import_role:
      name: "patch_redhat"
  tags:
    - redhat
- hosts: adfv_suse
  order: inventory
  gather_facts: false
  # default: all in first step, but that shit requires (int)
  serial: 666
  tasks:
  - name: SUSE Patches
    ansible.builtin.import_role:
      name: "patch_suse"
  tags:
    - suse