Roots Discourse

Adding a fourth environment

ansible
trellis
#1

I’ve been working on a fourth environment. Thus far, I have:

  1. Copied group_vars/staging to group_vars/staging-two and updated values within to reflect new environment name.
  2. Created a new branch(env/staging-two) for this new environment, and verified it is correctly enetered into wordpress_sites.yml.
  3. Copied hosts/staging to hosts/staging-two and updated new file with IP for new droplet.
  4. Added staging-two to env_groups in roles/common/defaults/main.yml

I must still be missing something, because when I attempted to provision (ansible-playbook server.yml -e env=staging-two), I got:

TASK [Ensure environment is defined]
skipping: [localhost]
[WARNING]: Could not match supplied host pattern, ignoring: staging-two
PLAY [Test Connection and Determine Remote User]
skipping: no hosts matched
PLAY [Install prerequisites]
skipping: no hosts matched
PLAY [WordPress Server - Install LEMP Stack with PHP 7.2 and MariaDB MySQL]
skipping: no hosts matched

I tried changing staging-two to stagingtwo just in case the dash was an issue for whatever pattern matching might be going on, but the same behavior persists.

Ideas?

0 Likes

#2

Have you change this line to match the new environment name?

1 Like

#3

Silly me… This was it. Thanks!

0 Likes

closed #4

This topic was automatically closed after 42 days. New replies are no longer allowed.

0 Likes