playbooks voor tivoli client en rugcms uitrol toegevoegd
This commit is contained in:
5
playbooks/tivoli-client/tivo/tasks/change-node-name.yml
Normal file
5
playbooks/tivoli-client/tivo/tasks/change-node-name.yml
Normal file
@ -0,0 +1,5 @@
|
||||
- replace:
|
||||
path: /opt/tivoli/tsm/client/ba/bin/dsm.sys
|
||||
regexp: 'nodename'
|
||||
replace: 'nodename="{{ ansible_hostname }}'
|
||||
backup: yes
|
13
playbooks/tivoli-client/tivo/tasks/copy-config.yml
Normal file
13
playbooks/tivoli-client/tivo/tasks/copy-config.yml
Normal 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
|
11
playbooks/tivoli-client/tivo/tasks/copy-files.yml
Normal file
11
playbooks/tivoli-client/tivo/tasks/copy-files.yml
Normal 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/*
|
||||
|
13
playbooks/tivoli-client/tivo/tasks/install-rpms.yml
Normal file
13
playbooks/tivoli-client/tivo/tasks/install-rpms.yml
Normal 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
|
6
playbooks/tivoli-client/tivo/tasks/main.yml
Normal file
6
playbooks/tivoli-client/tivo/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user