geerlingguy / raspberry-pi-dramble

DEPRECATED - Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8
http://www.pidramble.com/
MIT License
1.67k stars 260 forks source link

ansible-playbook -i inventory main.yml failing #210

Closed jdalke closed 3 years ago

jdalke commented 3 years ago

Trying to run the playbook and I get the follow when executing pre__tasks (test-setup.yml)

fatal: [192.168.1.221]: FAILED! => msg: |- The conditional check 'deploy_target != 'pi'' failed. The error was: error while evaluating conditional (deploy_target != 'pi'): 'deploy_target' is undefined

The error appears to be in '/home/jdalke/raspberry-pi-dramble/tasks/test-setup.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: Ensure auth.log file is present.
  ^ here
jdalke commented 3 years ago

Running ansible on Ubuntu 20.04 and Networking and Testing Ansible both work

jdalke commented 3 years ago

Closing issue as the deploy_target was suppose to be defined in the 'inventory' file which I accidently deleted. Once I added the variable back everything worked.