You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
829 B
28 lines
829 B
---
|
|
# The playbook for common tasks
|
|
|
|
- name: Deploy the Cloudera Repository
|
|
copy: src=etc/cloudera-CDH4.repo dest=/etc/yum.repos.d/cloudera-CDH4.repo
|
|
|
|
- name: Install the libselinux-python package
|
|
yum: name=libselinux-python state=installed
|
|
|
|
- name: Install the openjdk package
|
|
yum: name=java-1.6.0-openjdk state=installed
|
|
|
|
- name: Create a directory for java
|
|
file: state=directory path=/usr/java/
|
|
|
|
- name: Create a link for java
|
|
file: src=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre state=link path=/usr/java/default
|
|
|
|
- name: Create the hosts file for all machines
|
|
template: src=etc/hosts.j2 dest=/etc/hosts
|
|
|
|
- name: Disable SELinux in conf file
|
|
selinux: state=disabled
|
|
|
|
- name: Create the iptables file for all machines
|
|
template: src=iptables.j2 dest=/etc/sysconfig/iptables
|
|
notify: restart iptables
|
|
|
|
|