Unable to initialize credentials
I'm following the quick start guide, but fail in step 4 (init-credentials):
…/infrastructure/float-config/config $ ../float/float init-credentials --config=/home/varac/cad/infrastructure/float-config/config/config.yml
Running playbook ../float/playbooks/init-credentials.yml...
[WARNING]: * Failed to parse /home/varac/cad/infrastructure/float-config/config/config.yml with float plugin: [Errno 2] No such file or directory: u'/home/varac/cad/infrastructure/float-
config/config/hosts.yml'
[WARNING]: Unable to parse /home/varac/cad/infrastructure/float-config/config/config.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************************************************************************************************************************************************
TASK [Create paths below {{ credentials_dir }}] ********************************************************************************************************************************************************************
Monday 22 October 2018 16:47:53 +0200 (0:00:00.046) 0:00:00.047 ********
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'credentials_dir' is undefined\n\nThe error appears to have been in '/home/varac/projects/cad/infrastructure/float-config/float/playbooks/init-credentials.yml': line 17, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n # Create the paths below credentials_dir that we're going to use.\n - name: \"Create paths below {{ credentials_dir }}\"\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
ERROR:p=23408 u=varac | :fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'credentials_dir' is undefined\n\nThe error appears to have been in '/home/varac/projects/cad/infrastructure/float-config/float/playbooks/init-credentials.yml': line 17, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n # Create the paths below credentials_dir that we're going to use.\n - name: \"Create paths below {{ credentials_dir }}\"\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
to retry, use: --limit @/home/varac/projects/cad/infrastructure/float-config/float/playbooks/init-credentials.retry
PLAY RECAP *********************************************************************************************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1
Monday 22 October 2018 16:47:53 +0200 (0:00:00.023) 0:00:00.070 ********
===============================================================================
Create paths below {{ credentials_dir }} -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.02s
ERROR: Command '['ansible-playbook', '-i', '/home/varac/cad/infrastructure/float-config/config/config.yml', '../float/playbooks/init-credentials.yml']' returned non-zero exit status 2
So config.yml
is passed as inventory file to ansible, which is wrong, or not ?