4 changed files with 44 additions and 0 deletions
@ -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 |
|||
|
|||
@ -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' } |
|||
@ -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" |
|||
@ -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…
Reference in new issue