Всем привет! Есть такая конструкция, накоторую выдается ошибка. Подскажите, как кавычки ставить правильно? Не пойму..
name: Initialize Wordpress site
command: "{{ item }} chdir: /var/www/wordpress/{{domain}}"
with_items:
- "wp core download --locale=ru_RU --path=/var/www/wordpress/{{domain}}"
- "wp core config --dbname=${DB_NAME} --dbuser=${DB_NAME} --dbpass=${DB_PASSWORD} --dbprefix={{domain}}}wp_"
- "wp core install --url={{domain}} --title={{domain}} --admin_user={{wpuser}} --admin_password={{wppassword}} --admin_email={{wpmail}}"1
become: yes
The offending line appears to be:
- name: Initialize Wordpress site
command: "{{ item }} chdir: /var/www/wordpress/{{domain}}"
^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:
with_items:
- {{ foo }}
Should be written as:
with_items:
- "{{ foo }}"