Ansible错误"' dict object'没有属性u' xxxxxxxx.dev' ??

时间:2016-03-11 11:20:49

标签: ansible ansible-playbook

我是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)

我错过了什么?

1 个答案:

答案 0 :(得分:1)

link帮助我

我已将'example.com'更改为'xxxxx.com.in'

中的'group_vars/development/vault.yml'

现在正在运作