mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-01 09:50:18 +08:00
We can use this for registering and configuring the lab controller as part of the deployment playbooks. It will probably come in handy for other stuff as well, like ad hoc tasks and testing. The template is intentionally not named templates/root/.beaker_client/config.j2 following the same pattern as the other templates, because it seemed like a bad idea to have a template inside a hidden directory.
19 lines
482 B
YAML
19 lines
482 B
YAML
---
|
|
# Configures the bkr client on the server itself. We can use this from Ansible
|
|
# to perform various administrative tasks.
|
|
|
|
- name: install bkr client
|
|
yum: pkg=beaker-client state=present
|
|
tags:
|
|
- beaker-server
|
|
|
|
- name: create /root/.beaker_client
|
|
file: path=/root/.beaker_client state=directory
|
|
tags:
|
|
- beaker-server
|
|
|
|
- name: configure bkr client
|
|
template: src=root/beaker-client-config.j2 dest=/root/.beaker_client/config mode=0600
|
|
tags:
|
|
- beaker-server
|