I’ve been working on a fourth environment. Thus far, I have:
group_vars/staging-twoand 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 into
hosts/staging-twoand updated new file with IP for new droplet.
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
stagingtwo just in case the dash was an issue for whatever pattern matching might be going on, but the same behavior persists.