Skip to content
Snippets Groups Projects
Verified Commit de5552e0 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

hosts: get rid of dedicated_servers group

This has become outdated (missing new dedicated servers) and its usage
can be replicated by checking if ansible_virtualization_role == "host".

For Ansible ad hoc commands, '!hcloud' can be used to the same effect.
parent ef266a95
No related branches found
No related tags found
1 merge request!644Tidy up the inventory a bit
Pipeline #35206 passed
......@@ -105,13 +105,6 @@ europe.mirror.pkgbuild.com
repro2.pkgbuild.com
runner1.archlinux.org
[dedicated_servers]
build.archlinux.org
gemini.archlinux.org
runner1.archlinux.org
runner2.archlinux.org
secure-runner1.archlinux.org
[hcloud]
accounts.archlinux.org
archlinux.org
......
......@@ -7,7 +7,7 @@
- name: Install smartmontools for dedicated servers
pacman: name=smartmontools state=present
when: "'dedicated_servers' in group_names"
when: ansible_virtualization_role == "host"
- name: Install prometheus-memcached-exporter
pacman: name=prometheus-memcached-exporter state=present
......@@ -90,15 +90,15 @@
- name: Install smart textcollector service
template: src=prometheus-smart-textcollector.service.j2 dest=/etc/systemd/system/prometheus-smart-textcollector.service owner=root group=root mode=644
when: "'dedicated_servers' in group_names"
when: ansible_virtualization_role == "host"
- name: Install smart textcollector timer
template: src=prometheus-smart-textcollector.timer.j2 dest=/etc/systemd/system/prometheus-smart-textcollector.timer owner=root group=root mode=644
when: "'dedicated_servers' in group_names"
when: ansible_virtualization_role == "host"
- name: Enable and start prometheus smart textcollector timer
systemd: name=prometheus-smart-textcollector.timer enabled=yes daemon_reload=yes state=started
when: "'dedicated_servers' in group_names"
when: ansible_virtualization_role == "host"
- name: Install hetzner textcollector service
template: src=prometheus-hetzner-textcollector.service.j2 dest=/etc/systemd/system/prometheus-hetzner-textcollector.service owner=root group=root mode=644
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment