motd generic template added

migrated notes from infra/hosts

motd changes; excluding CSI infos

removed csi_* vars from group_vars; converted csi_purpose & csi_relationship into notes

fixed merge conflicts

minor changes; var

updating YAMLs & playbooks

udpated YAMLs & playbooks again

updated correctly; buildhw.yml

fixing merge conflicts

dest added in motd.yml
This commit is contained in:
iamyaash 2025-01-06 13:04:00 +05:30 committed by kevin
parent 7799cc2478
commit b3d6a90b9a
112 changed files with 370 additions and 562 deletions

View file

@ -34,7 +34,6 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- import_tasks: "{{ tasks_path }}/rdiff_backup_server.yml"
handlers:

View file

@ -30,8 +30,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -62,8 +62,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -123,7 +123,6 @@
ansible.builtin.file: src=/mnt/fedora_koji_prod/koji dest=/mnt/koji/vol/prod state=link
tags: bodhi
when: env == 'staging'
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -88,9 +88,6 @@
when: env == "staging"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
when: not inventory_hostname.startswith('bkernel')
- name: make sure kojid is running
service: name=kojid state=started enabled=yes

View file

@ -72,13 +72,6 @@
candidate_registry_osbs_password: "{{candidate_registry_osbs_stg_password}}"
when: env == "staging"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
when: not inventory_hostname.startswith('bkernel') and env == 'production'
# - name: Make sure kojid is running
# service: name=kojid state=started enabled=yes
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -28,9 +28,6 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -29,9 +29,7 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Make sure certbot is installed
- name: make sure certbot is installed
ansible.builtin.package: name=certbot state=installed
handlers:

View file

@ -23,7 +23,5 @@
- import_role: name=ipa/client
- import_role: name=copr/hypervisor
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -28,8 +28,5 @@
- collectd/base
- sudo
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -72,8 +72,5 @@
# - collectd/postgres # This requires a 'databases' var to be set in host_vars
- sudo
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -31,9 +31,7 @@
nfs_src_dir: "fedora_koji"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Install debuginfod
- name: install debuginfod
ansible.builtin.package: name=elfutils-debuginfod state=present
tags: debuginfod

View file

@ -32,8 +32,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -50,9 +50,7 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Put in script for syncing fedora on download-ib01
- name: put in script for syncing fedora on download-ib01
ansible.builtin.copy: src="{{ files }}/download/sync-up-downloads.sh.ib01" dest=/usr/local/bin/sync-up-downloads owner=root group=root mode=755
when: inventory_hostname == 'download-ib01.fedoraproject.org'
- name: Put in script for syncing fedora-alt on download-ib01

View file

@ -23,9 +23,5 @@
- sudo
- flatpak-cache
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -35,9 +35,6 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -29,9 +29,6 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -38,9 +38,6 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -152,9 +152,6 @@
user_sent_topics: ^org\.fedoraproject\.{{ env_short }}\.buildsys\..*
when: koji_instance == 'secondary'
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -68,8 +68,5 @@
- role: kojipkgs
- role: varnish
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -43,7 +43,6 @@
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
#
# We exclude some dirs from restorecon on updates on logservers as they are very large

View file

@ -33,10 +33,6 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
# this is how you include other task lists
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -24,8 +24,6 @@
tasks:
# this is how you include other task lists
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Install packager tools (dnf)
dnf: state=present pkg={{ item }}
with_items:

View file

@ -31,10 +31,6 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
# TODO: add iscsi task
handlers:

View file

@ -29,7 +29,7 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- import_tasks: "{{ role_path }}/base/tasks/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -24,9 +24,6 @@
- sudo
- openvpn/client
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -43,9 +43,6 @@
when: datacenter != 'iad2'
- { role: letsencrypt, site_name: 'nagios-external.fedoraproject.org', when: inventory_hostname.startswith('noc02') }
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -47,9 +47,6 @@
when: "env == 'staging'"
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -23,9 +23,6 @@
- { role: sudo, tags: ['sudo'] }
- apache
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -25,8 +25,5 @@
- { role: linux-system-roles.nbde_client, tags: ['nbde_client'], when: openqa_nbde|bool }
- apache
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -28,7 +28,7 @@
- apache
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- import_tasks: "{{ role_path }}/base/tasks/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -62,7 +62,6 @@
mode: "0755"
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -28,9 +28,7 @@
- keepalived
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Install haproxy
- name: install haproxy
ansible.builtin.package: name=haproxy state=present
- name: Install haproxy config

View file

@ -28,9 +28,6 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -84,8 +84,5 @@
- people
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -33,7 +33,6 @@
- krb5
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -35,9 +35,6 @@
- collectd/postgres # This requires a 'databases' var to be set in host_vars
- sudo
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
# TODO: add iscsi task
handlers:

View file

@ -37,7 +37,6 @@
# when: env == "staging"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
# You might think we would want these tasks_path on the proxy nodes, but they
# actually deliver a configuration that our proxy-specific roles below then go

View file

@ -32,8 +32,5 @@
- sudo
- rabbitmq_cluster
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -187,9 +187,7 @@
tasks:
# this is how you include other task lists
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Install skopeo and buildah for container management
- name: install skopeo and buildah for container management
ansible.builtin.package:
name:
- skopeo

View file

@ -73,8 +73,6 @@
- import_role: name=nagios_client
- import_role: name=sudo
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -55,8 +55,6 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Install some misc packages needed for various tasks
ansible.builtin.package:
state: present

View file

@ -37,8 +37,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -29,8 +29,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -29,8 +29,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -89,8 +89,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -26,8 +26,5 @@
- sudo
- tang
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -37,8 +37,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -48,8 +48,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -52,8 +52,5 @@
- {role: linux-system-roles.nbde_client, tags: ['nbde_client'], when: datacenter == 'iad2' and nbde|bool}
- {role: serial-console, when: datacenter == 'iad2' and ansible_architecture != 's390x'}
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -42,8 +42,5 @@
- mediawiki
- sudo
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -27,8 +27,6 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Sync sysadmin-noc membership to the zabbix server
include_role:
name: zabbix/zabbix_server

View file

@ -29,7 +29,6 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Check if ntpd port is already known by selinux
ansible.builtin.shell: semanage port -l | grep ntp

View file

@ -31,9 +31,7 @@
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: Install some packages which arent in playbooks
- name: install some packages which arent in playbooks
ansible.builtin.package:
state: present
name:

View file

@ -85,9 +85,5 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -21,9 +21,5 @@
- sudo
- hosts
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -43,7 +43,6 @@
tasks:
- import_tasks: "{{ tasks_path }}/hosts.yml"
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -44,8 +44,5 @@
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"