Add nirik's nbde client fixups to openQA worker playbook

nirik did some stuff in the virthost and buildhw groups to try
and deal with a problem where network configuration created
during the initrd phase for the nbde_client role is activated
by NM during the regular system boot phase, which results in
the network configuration not being the one we actually want
and carefully set up. However, he didn't add this stuff to the
openqa-workers group playbook even though that uses the
nbde_client role too, and we sure are having the same problem
on the openQA workers. Adding it now to see if it helps.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-07-14 12:35:03 -07:00
parent 8e891fe4d5
commit 72a1f710d5

View file

@ -12,6 +12,22 @@
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
- name: override nbde_client-network-flush to work around bug
copy:
src: "{{ files }}/common/nbde_client-network-flush"
dest: /usr/bin/nbde_client-network-flush
owner: root
group: root
mode: 755
- name: tell NetworkManager we don't want any auto connections
copy:
src: "{{ files }}/common/noautodefault.conf"
dest: /etc/NetworkManager/conf.d/noautodefault.conf
owner: root
group: root
mode: 644
roles:
- { role: base, tags: ['base'] }
- { role: rkhunter, tags: ['rkhunter'] }