From 6b7df291ee7c4c73a29b656369e41b9118be6216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 23 Jun 2022 08:20:43 +0200 Subject: [PATCH] use a bastion --- ansible/start.yaml | 2 +- ansible/stop.yaml | 2 +- templates/inventory | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ansible/start.yaml b/ansible/start.yaml index af3ab85..4d3f23a 100644 --- a/ansible/start.yaml +++ b/ansible/start.yaml @@ -1,5 +1,5 @@ - name: Start the OpenShift cluster - hosts: localhost + hosts: admin gather_facts: no become: no vars: diff --git a/ansible/stop.yaml b/ansible/stop.yaml index 36b618e..c745c91 100644 --- a/ansible/stop.yaml +++ b/ansible/stop.yaml @@ -1,5 +1,5 @@ - name: Stop the OpenShift cluster - hosts: localhost + hosts: admin gather_facts: no become: no vars: diff --git a/templates/inventory b/templates/inventory index 84f9600..2f54803 100644 --- a/templates/inventory +++ b/templates/inventory @@ -1,3 +1,6 @@ [all:vars] nodes=${jsonencode(nodes)} +[admin] +admin.itix.lab ansible_user=nicolas +