ansible-playbook 2.7.4
config file = None
configured module search path = ['/home/snesbitt/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/snesbitt/.local/share/virtualenvs/ansible-8A5NQYXv/lib/python3.6/site-packages/ansible
executable location = /home/snesbitt/.local/share/virtualenvs/ansible-8A5NQYXv/bin/ansible-playbook
python version = 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
No config file found; using defaults
setting up inventory plugins
/home/snesbitt/Projects/devops/ansible/terraform/sandbox/localhost did not meet host_list requirements, check plugin documentation if this is unexpected
Skipping due to inventory source not existing or not being readable by the current user
/home/snesbitt/Projects/devops/ansible/terraform/sandbox/localhost did not meet script requirements, check plugin documentation if this is unexpected
Skipping due to inventory source not existing or not being readable by the current user
/home/snesbitt/Projects/devops/ansible/terraform/sandbox/localhost did not meet yaml requirements, check plugin documentation if this is unexpected
Skipping due to inventory source not existing or not being readable by the current user
/home/snesbitt/Projects/devops/ansible/terraform/sandbox/localhost did not meet ini requirements, check plugin documentation if this is unexpected
/home/snesbitt/Projects/devops/ansible/terraform/sandbox/localhost did not meet auto requirements, check plugin documentation if this is unexpected
[WARNING]: Unable to parse /home/snesbitt/Projects/devops/ansible/terraform/sandbox/localhost 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'
Loading callback plugin default of type stdout, v2.0 from /home/snesbitt/.local/share/virtualenvs/ansible-8A5NQYXv/lib/python3.6/site-packages/ansible/plugins/callback/default.py
PLAYBOOK: test_terraform_list.yaml ***************************************************************************************************************************************************************
1 plays in test_terraform_list.yaml
PLAY [localhost] *********************************************************************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************************************************************************
task path: /home/snesbitt/Projects/devops/ansible/terraform/sandbox/test_terraform_list.yaml:2
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: snesbitt
<127.0.0.1> EXEC /bin/sh -c 'echo ~snesbitt && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/snesbitt/.ansible/tmp/ansible-tmp-1545670798.8773258-51417051836111 `" && echo ansible-tmp-1545670798.8773258-51417051836111="` echo /home/snesbitt/.ansible/tmp/ansible-tmp-1545670798.8773258-51417051836111 `" ) && sleep 0'
Using module file /home/snesbitt/.local/share/virtualenvs/ansible-8A5NQYXv/lib/python3.6/site-packages/ansible/modules/system/setup.py
<127.0.0.1> PUT /home/snesbitt/.ansible/tmp/ansible-local-93401_0r0s9e/tmpqi9zh2or TO /home/snesbitt/.ansible/tmp/ansible-tmp-1545670798.8773258-51417051836111/AnsiballZ_setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/snesbitt/.ansible/tmp/ansible-tmp-1545670798.8773258-51417051836111/ /home/snesbitt/.ansible/tmp/ansible-tmp-1545670798.8773258-51417051836111/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/home/snesbitt/.local/share/virtualenvs/ansible-8A5NQYXv/bin/python3.6 /home/snesbitt/.ansible/tmp/ansible-tmp-1545670798.8773258-51417051836111/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/snesbitt/.ansible/tmp/ansible-tmp-1545670798.8773258-51417051836111/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
META: ran handlers
TASK [Test Terraform List] ***********************************************************************************************************************************************************************
task path: /home/snesbitt/Projects/devops/ansible/terraform/sandbox/test_terraform_list.yaml:6
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: snesbitt
<127.0.0.1> EXEC /bin/sh -c 'echo ~snesbitt && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/snesbitt/.ansible/tmp/ansible-tmp-1545670799.7136817-89538225081643 `" && echo ansible-tmp-1545670799.7136817-89538225081643="` echo /home/snesbitt/.ansible/tmp/ansible-tmp-1545670799.7136817-89538225081643 `" ) && sleep 0'
Using module file /home/snesbitt/.local/share/virtualenvs/ansible-8A5NQYXv/lib/python3.6/site-packages/ansible/modules/cloud/misc/terraform.py
<127.0.0.1> PUT /home/snesbitt/.ansible/tmp/ansible-local-93401_0r0s9e/tmpapns9wkv TO /home/snesbitt/.ansible/tmp/ansible-tmp-1545670799.7136817-89538225081643/AnsiballZ_terraform.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/snesbitt/.ansible/tmp/ansible-tmp-1545670799.7136817-89538225081643/ /home/snesbitt/.ansible/tmp/ansible-tmp-1545670799.7136817-89538225081643/AnsiballZ_terraform.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/home/snesbitt/.local/share/virtualenvs/ansible-8A5NQYXv/bin/python3.6 /home/snesbitt/.ansible/tmp/ansible-tmp-1545670799.7136817-89538225081643/AnsiballZ_terraform.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/snesbitt/.ansible/tmp/ansible-tmp-1545670799.7136817-89538225081643/ > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"backend_config": null,
"binary_path": null,
"force_init": false,
"lock": true,
"lock_timeout": null,
"plan_file": null,
"project_path": "/home/snesbitt/Projects/devops/ansible/terraform/sandbox",
"purge_workspace": false,
"state": "present",
"state_file": null,
"targets": [],
"variables": {
"test2": "Hi",
"test_list": [
"list_element1",
"list_element_2"
]
},
"variables_file": null,
"workspace": "default"
}
},
"msg": "Failed to validate Terraform configuration files:\r\n2018/12/24 08:59:59 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334\n2018/12/24 08:59:59 [INFO] Go runtime version: go1.11.1\n2018/12/24 08:59:59 [INFO] CLI args: []string{\"/usr/local/bin/terraform_0.11.11/terraform\", \"validate\", \"-var\", \"'test_list=['\\\"'\\\"'list_element1'\\\"'\\\"', '\\\"'\\\"'list_element_2'\\\"'\\\"']'\", \"-var\", \"test2=Hi\"}\n2018/12/24 08:59:59 [DEBUG] Attempting to open CLI config file: /home/snesbitt/.terraformrc\n2018/12/24 08:59:59 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.\n2018/12/24 08:59:59 [INFO] CLI command args: []string{\"validate\", \"-var\", \"'test_list=['\\\"'\\\"'list_element1'\\\"'\\\"', '\\\"'\\\"'list_element_2'\\\"'\\\"']'\", \"-var\", \"test2=Hi\"}\n\u001b[31mUsage: terraform validate [options] [dir]\n\n Validate the terraform files in a directory. Validation includes a\n basic check of syntax as well as checking that all variables declared\n in the configuration are specified in one of the possible ways:\n\n -var foo=...\n -var-file=foo.vars\n TF_VAR_foo environment variable\n terraform.tfvars\n default value\n\n If dir is not specified, then the current directory will be used.\n\nOptions:\n\n -check-variables=true If set to true (default), the command will check\n whether all required variables have been specified.\n\n -no-color If specified, output won't contain any color.\n\n -var 'foo=bar' Set a variable in the Terraform configuration. This\n flag can be set multiple times.\n\n -var-file=foo Set variables in the Terraform configuration from\n a file. If \"terraform.tfvars\" is present, it will be\n automatically loaded if this flag is not specified.\u001b[0m\u001b[0m\n2018/12/24 08:59:59 [DEBUG] plugin: waiting for all plugin processes to complete...\n"
}
to retry, use: --limit @/home/snesbitt/Projects/devops/ansible/terraform/sandbox/test_terraform_list.retry
PLAY RECAP ***************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1