summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2015-02-24 14:54:25 -0500
committerMatt Woodson <mwoodson@gmail.com>2015-02-24 14:54:25 -0500
commit50f53296253953fb2d3fff6bd7d7d3e538b9430b (patch)
treeb36794ef63768bab4f0fdab2fe87302c3805730d /roles
parent0d0b7fa2bba160e8d04ba0f67a0de5c7a06499db (diff)
parent44e939dba128ea0a02112af555fdf085edacf464 (diff)
downloadopenshift-50f53296253953fb2d3fff6bd7d7d3e538b9430b.tar.gz
openshift-50f53296253953fb2d3fff6bd7d7d3e538b9430b.tar.bz2
openshift-50f53296253953fb2d3fff6bd7d7d3e538b9430b.tar.xz
openshift-50f53296253953fb2d3fff6bd7d7d3e538b9430b.zip
Merge pull request #78 from mwoodson/tower_install
tower install
Diffstat (limited to 'roles')
-rw-r--r--roles/ansible/tasks/main.yaml7
-rw-r--r--roles/ansible_tower/tasks/main.yaml27
-rw-r--r--roles/base_os/tasks/main.yaml5
-rw-r--r--roles/os_ipv6_disable/tasks/main.yaml11
4 files changed, 50 insertions, 0 deletions
diff --git a/roles/ansible/tasks/main.yaml b/roles/ansible/tasks/main.yaml
new file mode 100644
index 000000000..67a04b919
--- /dev/null
+++ b/roles/ansible/tasks/main.yaml
@@ -0,0 +1,7 @@
+---
+# Install ansible client
+
+- name: Install Ansible
+ yum:
+ pkg: ansible
+ state: installed
diff --git a/roles/ansible_tower/tasks/main.yaml b/roles/ansible_tower/tasks/main.yaml
new file mode 100644
index 000000000..f58a5b1c2
--- /dev/null
+++ b/roles/ansible_tower/tasks/main.yaml
@@ -0,0 +1,27 @@
+---
+- name: install some useful packages
+ yum: name={{ item }}
+ with_items:
+ - git
+ - python-pip
+ - unzip
+ - python-psphere
+ - ansible
+ - telnet
+ - ack
+
+- name: download Tower setup
+ get_url: url=http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-2.1.1.tar.gz dest=/opt/ force=no
+
+- name: extract Tower
+ unarchive: src=/opt/ansible-tower-setup-2.1.1.tar.gz dest=/opt copy=no creates=ansible-tower-setup-2.1.1
+
+- name: Open firewalld port for http
+ firewalld: port=80/tcp permanent=true state=enabled
+
+- name: Open firewalld port for https
+ firewalld: port=443/tcp permanent=true state=enabled
+
+- name: Open firewalld port for https
+ firewalld: port=8080/tcp permanent=true state=enabled
+
diff --git a/roles/base_os/tasks/main.yaml b/roles/base_os/tasks/main.yaml
index 2bb2b4ec7..448221cfb 100644
--- a/roles/base_os/tasks/main.yaml
+++ b/roles/base_os/tasks/main.yaml
@@ -19,6 +19,11 @@
state: present
insertafter: EOF
+- name: Bash Completion
+ yum:
+ pkg: bash-completion
+ state: installed
+
- name: Install firewalld
yum:
pkg: firewalld
diff --git a/roles/os_ipv6_disable/tasks/main.yaml b/roles/os_ipv6_disable/tasks/main.yaml
new file mode 100644
index 000000000..fae5beee7
--- /dev/null
+++ b/roles/os_ipv6_disable/tasks/main.yaml
@@ -0,0 +1,11 @@
+---
+# Disable ipv6 on RHEL7
+
+- name: Disable all ipv6
+ sysctl: name="net.ipv6.conf.all.disable_ipv6" value=1 sysctl_set=yes state=present reload=yes
+
+- name: Disable default ipv6
+ sysctl: name="net.ipv6.conf.default.disable_ipv6" value=1 sysctl_set=yes state=present reload=yes
+
+- name: Remove ipv6 localhost from /etc/hosts
+ lineinfile: dest='/etc/hosts' regexp='^::1 ' state=absent owner=root group=root mode=0644