playbooks voor tivoli client en rugcms uitrol toegevoegd

This commit is contained in:
2018-04-25 15:05:51 +02:00
parent 2191d58669
commit e2f5caa305
122 changed files with 2720 additions and 123 deletions

View File

@ -0,0 +1,5 @@
- replace:
path: /opt/tivoli/tsm/client/ba/bin/dsm.sys
regexp: 'nodename'
replace: 'nodename="{{ ansible_hostname }}'
backup: yes

View File

@ -0,0 +1,13 @@
- copy:
src: files/dsm.sys
dest: /opt/tivoli/tsm/client/ba/bin/dsm.sys_new
owner: root
mode: 0600
force: no
- copy:
src: files/dsm.opt
dest: /opt/tivoli/tsm/client/ba/bin/dsm.opt_new
owner: root
mode: 0600
force: no

View File

@ -0,0 +1,11 @@
- file: path=/root/tivo state=directory
- copy:
src: "{{ item }}"
dest: /root/tivo/
owner: root
mode: 0600
force: no
with_fileglob:
- files/*

View File

@ -0,0 +1,13 @@
- name: Find all rpm files in /tmp folder
find:
paths: "/root/tivo"
pattern: "*.rpm"
register: rpm_files
- set_fact:
rpm_list: "{{ rpm_files.files | map(attribute='path') | list}}"
- name: installing the rpm files
yum:
name: "{{rpm_list}}"
state: present

View File

@ -0,0 +1,6 @@
---
# tasks file for tivo
- include: copy-files.yml
- include: install-rpms.yml
- include: copy-config.yml
- include: change-node-name.yml