Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debops.pki fails when 1 of the hosts is unreachable #123

Open
whohoho opened this issue Dec 16, 2017 · 1 comment
Open

debops.pki fails when 1 of the hosts is unreachable #123

whohoho opened this issue Dec 16, 2017 · 1 comment

Comments

@whohoho
Copy link

whohoho commented Dec 16, 2017

TASK [debops.pki : Sign certificate requests for current hosts] ************************************************************************************
fatal: [node1.domain]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'pki_fact_fqdn'\n\nThe error appears to have been in virt-ansible/roles/external/debops.pki/tasks/main.yml': line 350, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Sign certificate requests [[[\n- name: Sign certificate requests for current hosts\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'dict object' has no attribute 'pki_fact_fqdn'"}

line 349 of tasks/main.yml:

command: ./lib/pki-authority sign-by-host
{% for host in play_hosts %}{{ hostvars[host].pki_fact_fqdn }} {% endfor %}

@drybjed
Copy link
Member

drybjed commented Jan 3, 2018

Thanks for the heads up, Jinja loop should skip hosts without the facts set. I'll try and update the role when I have some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants