summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2015-02-13 14:55:01 -0500
committerMatt Woodson <mwoodson@redhat.com>2015-02-13 14:55:01 -0500
commite45695622f867734cbfd64797cf6b830a2fff604 (patch)
tree1f5c125021996e996ed5559eaf983e6128e30b0c /roles
parent2a8f7ab95107eb4ea353a8d42ecc19d1ebd32395 (diff)
downloadopenshift-e45695622f867734cbfd64797cf6b830a2fff604.tar.gz
openshift-e45695622f867734cbfd64797cf6b830a2fff604.tar.bz2
openshift-e45695622f867734cbfd64797cf6b830a2fff604.tar.xz
openshift-e45695622f867734cbfd64797cf6b830a2fff604.zip
more ansible tower commits
Diffstat (limited to 'roles')
-rw-r--r--roles/ansible_install/tasks/main.yaml7
-rw-r--r--roles/base_os/tasks/main.yaml5
-rw-r--r--roles/ipv6_disable/tasks/main.yaml11
3 files changed, 23 insertions, 0 deletions
diff --git a/roles/ansible_install/tasks/main.yaml b/roles/ansible_install/tasks/main.yaml
new file mode 100644
index 000000000..67a04b919
--- /dev/null
+++ b/roles/ansible_install/tasks/main.yaml
@@ -0,0 +1,7 @@
+---
+# Install ansible client
+
+- name: Install Ansible
+ yum:
+ pkg: ansible
+ state: installed
diff --git a/roles/base_os/tasks/main.yaml b/roles/base_os/tasks/main.yaml
index 01d2898c5..dddedeaa8 100644
--- a/roles/base_os/tasks/main.yaml
+++ b/roles/base_os/tasks/main.yaml
@@ -16,6 +16,11 @@
src: vimrc
dest: /root/.vimrc
+- name: Bash Completion
+ yum:
+ pkg: bash-completion
+ state: installed
+
- name: Install firewalld
yum:
pkg: firewalld
diff --git a/roles/ipv6_disable/tasks/main.yaml b/roles/ipv6_disable/tasks/main.yaml
new file mode 100644
index 000000000..fae5beee7
--- /dev/null
+++ b/roles/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