ansible/playbooks/groups/os-control.yml
Ryan Lerch 2cf38c1f17 [yaml-lint] fix yamllint errors and warnings on plabooks
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-25 19:04:25 +10:00

56 lines
1.3 KiB
YAML

# This is a basic playbook
---
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
vars:
myhosts: "os_control:os_control_stg"
- name: make the box be real
hosts: os_control:os_control_stg
user: root
gather_facts: true
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- nagios_client
- hosts
- ipa/client
- rsyncd
- sudo
tasks:
- name: Create the directories to hold the templates
file:
path: "/etc/openshift_apps"
state: directory
owner: root
group: root
mode: "0770"
- name: copy oc rpm
copy:
src: /srv/web/infra/bigfiles/openshiftboot/oc-client/oc-client.rpm
dest: /root/oc-client.rpm
- name: make sure oc-client is installed
dnf:
name: /root/oc-client.rpm
state: installed
- name: copy the jobs-summary script
copy:
src: "{{ files }}/scripts/jobs-summary"
dest: /usr/local/bin/jobs-summary
mode: "0755"
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"