Filters in our ansible.git
Miroslav Suchý
msuchy at redhat.com
Wed Mar 25 15:06:23 UTC 2015
I created ./filter_plugins/openstack.py in our ansible.git to easy writing host_vars in our new cloud.
So instead of ids you can write names of networks, images...
So far I tested it on separate machine and it works, when I have this directory in ./ and I run ansible playbook in that
directory. And according the ansible documentation the directory structure is correct and those filters should be loaded
automaticaly without need to load them directly.
However:
$ sudo rbac-playbook groups/copr-backend.yml
EXECV: /usr/bin/sudo -i /bin/bash -i -c /usr/bin/python2 /usr/bin/ansible-playbook
/srv/web/infra/ansible/playbooks/groups/copr-backend.yml
PLAY [check/create instance] **************************************************
TASK: [spin UP VM using nova_compute] *****************************************
fatal: [copr-be-dev.cloud.fedoraproject.org -> 127.0.0.1] => template error while templating string: no filter named
'image_name_to_id'
FATAL: all hosts have already failed -- aborting
This playbook use new
tasks/persistent_cloud_new.yml
so it may not work completely, but the goal is to get past this error. I have no clue how I can debug it on lockbox.
Can somebody from @sysadmin-main investigate it please?
--
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
More information about the infrastructure
mailing list