mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-11 04:10:17 +01:00
28 lines
829 B
YAML
28 lines
829 B
YAML
---
|
|
# 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
|
|
|