Ansible nested variable is adding [''] around the variable
Hello!
I have the following vars/main.yml file I am sourcing for an Ansible task. Ultimately, the purpose being that if there is a list of sites needed, they can be put in the var and looped over. Code:
vars/main.yml Code:
playbook.yml Code:
TASK [Ensure proper ownership of the images and cache dirs] ************************************************* Admittedly, I'm not very familiar with/understand what is presumably a more advanced method of trying to reference a main variable list within 'with_items' the way I have it now. |
I don't understand what you wish to accomplish here, but I'm sure it would be simpler without ansible. Sg like this:
Code:
someuser=... |
Quote:
The motivator for using Ansible, there is some other stuff going on the playbook that I left out of the code here - connecting to a different machine and creating supporting databases, the user that connects to the database, assigning their perms, etc. Creating the /var/www/html/[site,site2,site3]/ dirs. That stuff is working well. I wanted to try getting this particular task to have the ability to scale to having the... Code:
new_site: Code:
new_site: |
All times are GMT -5. The time now is 08:23 AM. |