From 083282b117c4eb86e02b34fb654ad88129098606 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 27 Feb 2019 14:06:42 +0100 Subject: [PATCH] test_x --- .drone.yml | 2 ++ molecule/gce-centos-7/create.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9c9b467..0dadf61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,6 +33,8 @@ steps: from_secret: gce_project_id GCE_CREDENTIALS_JSON: from_secret: gce_credentials_json + GCE_SSH_USER: + from_secret: gce_ssh_user GCE_CREDENTIALS_FILE: $HOME/ansible-testing.json commands: - mkdir $HOME/.ssh diff --git a/molecule/gce-centos-7/create.yml b/molecule/gce-centos-7/create.yml index 3dda1f2..3f4bc6c 100644 --- a/molecule/gce-centos-7/create.yml +++ b/molecule/gce-centos-7/create.yml @@ -6,7 +6,7 @@ #no_log: "{{ not (lookup('env', 'MOLECULE_DEBUG') | bool or molecule_yml.provisioner.log|default(false) | bool) }}" vars: ssh_port: 22 - ssh_user: "{{ lookup('env', 'USER') }}" + ssh_user: "{{ lookup('env', 'GCE_SSH_USER') }}" ssh_identity_file: "{{ lookup('env', 'HOME') }}/.ssh/google_compute_engine" tasks: - name: Create molecule instance(s)