Browse Source

now playbooks are stored in a subdir

master
Nicolas Massé 9 years ago
parent
commit
3952fe67cc
  1. 9
      playbooks/post-install.yml
  2. 10
      playbooks/preparation.yml
  3. 10
      playbooks/site.yml
  4. 15
      playbooks/switch-to-iptables.yml

9
playbooks/post-install.yml

@ -0,0 +1,9 @@
---
- name: Complete the OpenShift installation
hosts: lab
become: yes
tasks:
- name: Give admin rights to nicolas
command: oc adm policy add-cluster-role-to-user cluster-admin nicolas.masse@itix.fr

10
playbooks/preparation.yml

@ -0,0 +1,10 @@
---
- name: Prepare an "All-in-one" VM for OpenShift
hosts: lab
become: yes
roles:
- { name: 'base', tags: 'base' }
- { name: 'name-resolution', tags: 'name-resolution' }
- { name: 'docker', tags: 'docker' }
- { name: 'openshift-prereq', tags: 'openshift-prereq' }

10
playbooks/site.yml

@ -0,0 +1,10 @@
---
- include: "switch-to-iptables.yml"
- include: "preparation.yml"
# Launch the OpenShift Installer Playbook
- include: "./openshift-ansible/playbooks/byo/config.yml"
- include: "post-install.yml"

15
playbooks/switch-to-iptables.yml

@ -0,0 +1,15 @@
---
- name: Switch to iptables
hosts: lab
become: yes
tasks:
- name: Install iptables-services
yum: name=iptables-services state=installed
tags: rpm
- name: Disable firewalld
service: name=firewalld state=stopped enabled=no
- name: Enable iptables
service: name=iptables state=started enabled=yes
Loading…
Cancel
Save