Streisand: "AnsibleUndefinedVariable: 'streisand_genesis_role' is undefined"

Created on 20 Sep 2017  路  5Comments  路  Source: StreisandEffect/streisand

Expected behavior:

Streisand installed to existing server.

Actual Behavior: getting error about undefined variable.

Steps to Reproduce:

  1. git clone https://github.com/jlund/streisand.git && cd streisand
  2. ./streisand
  3. Choose 8 (existing server)
  4. Input server ip
  5. Skip domain and email inputs.
  6. error

Additional Details:

Log output from Ansible or other relevant services (link to Gist for longer output): gist

Target Cloud Provider: scaleway.com
Operating System of target host: Ubuntu 17.04 Linux scw-d92cba 4.9.20-std-1 #1 SMP Tue Apr 4 12:56:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Operating System of client: ArchLinux Linux home 4.12.13-1-ARCH #1 SMP PREEMPT Fri Sep 15 06:36:43 UTC 2017 x86_64 GNU/Linux
Version of Ansible, using ansible --version :
[ape364@home ~]$ ansible --version
ansible 2.4.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/ape364/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.13 (default, Jul 21 2017, 03:24:34) [GCC 7.1.1 20170630]
Output from git rev-parse HEAD in your Streisand directory : 4ff8823a780d01403ebb55480bcc7611fbbe5131
kinbug

Most helpful comment

@nopdotcom This one isn't related to the Ansible version unfortunately.

@ape364 There's an outstanding fix for this in https://github.com/jlund/streisand/pull/955 - I will try to merge tonight. In the meantime can you try checking that branch out?

I also ran into & fixed this in 134e00ab8fe33ebbf6b1b668672b8ce2db66cd46

All 5 comments

Could you try an Ansible before 2.4? I think we're hitting some teething pains. You can fetch an older one with pip install "ansible<2.4".

@nopdotcom This one isn't related to the Ansible version unfortunately.

@ape364 There's an outstanding fix for this in https://github.com/jlund/streisand/pull/955 - I will try to merge tonight. In the meantime can you try checking that branch out?

I also ran into & fixed this in 134e00ab8fe33ebbf6b1b668672b8ce2db66cd46

On this branch the error is disappeared. Next i got an error related to the package libgnutls-dev. I've renamed it to libgnutls28-dev in /streisand/playbooks/roles/openconnect/vars/main.yml and it's okay.
Now i'm getting error related to pgp keys: gist.

@ape364 Glad to hear that branch fixed the error reported.

That GPG error may be transient. I would recommend opening a separate issue for that.

As an aside: If you search "Scaleway" in the issues you'll find there are lots of problems folks have reported using Scaleway machines. They seem to be non-standard and we do not support them explicitly. I would recommend using a supported provider if you want to avoid problems.

I merged the interim fix from @jlund's PR to master. @ape364 Thanks for reporting the undefined var error!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

psionic12 picture psionic12  路  5Comments

timXTM picture timXTM  路  6Comments

sudoyum999 picture sudoyum999  路  4Comments

wicknet picture wicknet  路  5Comments

markwyner picture markwyner  路  3Comments