I’ve been working on a fourth environment. Thus far, I have:
- Copied
group_vars/staging
togroup_vars/staging-two
and updated values within to reflect new environment name. - Created a new branch(
env/staging-two
) for this new environment, and verified it is correctly enetered intowordpress_sites.yml
. - Copied
hosts/staging
tohosts/staging-two
and updated new file with IP for new droplet. - Added
staging-two
toenv_groups
inroles/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?