Remote Server Setup Fails at Create/ Assign User to DB

Hi all, I’m using a Digital Ocean setup and have had no luck with getting my server setup to get past this point:

TASK: [wordpress-setup | Create/assign database user to db and grant permissions] *** 
fatal: [159.203.207.129] => One or more undefined variables: 'dict object' has no attribute 'storytelier.com'

NOTIFIED: [common | restart memcached] **************************************** 
FATAL: no hosts matched or all hosts have already failed -- aborting


NOTIFIED: [common | reload nginx] ********************************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting


NOTIFIED: [common | reload php-fpm] ******************************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting


NOTIFIED: [fail2ban | restart fail2ban] *************************************** 
FATAL: no hosts matched or all hosts have already failed -- aborting


NOTIFIED: [ferm | restart ferm] *********************************************** 
FATAL: no hosts matched or all hosts have already failed -- aborting


NOTIFIED: [ntp | restart ntp] ************************************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting


NOTIFIED: [sshd | restart ssh] ************************************************ 
FATAL: no hosts matched or all hosts have already failed -- aborting

I have the local setup working fine, so I imagine it’s in the group_vars wordpress sites file, but I can’t seem to find anything:

# Documentation: https://roots.io/trellis/docs/local-development-setup/
wordpress_sites:
  storytelier.com:
    site_hosts:
      - storytelier.dev
    local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
    site_install: true
    site_title: Storytelier
    admin_user: admin
    # admin_password: (defined in group_vars/development/vault.yml)
    admin_email: japhygrant@gmail.com
    permalink_structure: "/%postname%/"
    multisite:
      enabled: true
      subdomains: true
    ssl:
      enabled: false
    cache:
      enabled: false
      duration: 30s
    env:
      disable_wp_cron: true
      wp_home: http://storytelier.dev
      wp_siteurl: http://storytelier.dev
      wp_env: development
      domain_current_site: storytelier.dev
      db_name: example_dev
      db_user: example_dbuser
      # db_password: (defined in group_vars/development/vault.yml)

Any suggestions?

@japhygrant Have you changed example.com to storytelier.com in group_vars/<environment>/vault.yml ?

2 Likes