我是ansible和vagrant的新手,当我尝试运行vagrant provision时,我收到此错误消息
fatal: [default]: FAILED! => {"failed": true, "msg": "'dict object' has no attribute u'xxxxxxxx.dev'"}
我认为这是下面的文件中的一个错误,我试图改变格式,但它无法正常工作
wordpress_sites:
xxxxx.com.in:
site_hosts:
- xxxxx.dev
local_path: ../site
site_install: true
site_title: Xxxxx
admin_user: admin
# admin_password: (defined in group_vars/development/vault.yml)
admin_email: xxxxx@xxxxxx.dev
initial_permalink_structure: /%postname%/ # applied only at time of WP install and when `site_install: true`
multisite:
enabled: false
subdomains: false
ssl:
enabled: false
cache:
enabled: false
duration: 30s
env:
disable_wp_cron: true
wp_home: http://xxxxxx.dev
wp_siteurl: http://xxxxxx.dev/wp
wp_env: development
db_name: xxxxxx
db_user: xxxxxx
# db_password: (defined in group_vars/development/vault.yml)
我错过了什么?
答案 0 :(得分:1)