forked from infra/ansible
OpenShift: Refactor os-control playbook to a role and add monitoring
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
parent
360f493bc4
commit
92fe69c649
5 changed files with 353 additions and 63 deletions
|
|
@ -22,69 +22,7 @@
|
|||
- ipa/client
|
||||
- rsyncd
|
||||
- sudo
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Install rdiff-backup for backups
|
||||
ansible.builtin.package:
|
||||
name: rdiff-backup
|
||||
state: present
|
||||
|
||||
- name: Install unzip
|
||||
ansible.builtin.package:
|
||||
name: unzip
|
||||
state: present
|
||||
|
||||
- name: Install python3-kubernetes
|
||||
ansible.builtin.package:
|
||||
name: python3-kubernetes
|
||||
state: present
|
||||
|
||||
- name: Install tar
|
||||
ansible.builtin.package:
|
||||
name: tar
|
||||
state: present
|
||||
|
||||
- name: Install tar
|
||||
ansible.builtin.package:
|
||||
name: butane
|
||||
state: present
|
||||
|
||||
- name: Create the directories to hold the templates
|
||||
ansible.builtin.file:
|
||||
path: "/etc/openshift_apps"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0770"
|
||||
|
||||
- name: Install helm if not exists
|
||||
unarchive:
|
||||
src: https://get.helm.sh/helm-v3.17.0-linux-amd64.tar.gz
|
||||
dest: /usr/local/bin
|
||||
extra_opts: "--strip-components=1"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
remote_src: true
|
||||
args:
|
||||
creates: /usr/local/bin/helm
|
||||
|
||||
- name: Copy oc rpm
|
||||
ansible.builtin.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
|
||||
ansible.builtin.copy:
|
||||
src: "{{ files }}/scripts/jobs-summary"
|
||||
dest: /usr/local/bin/jobs-summary
|
||||
mode: "0755"
|
||||
- openshift/control
|
||||
|
||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue