PLAY ***************************************************************************
skipping: no hosts matched
Trying to figure out if its an access thing or if there is a way to inject the localhost just for the role i need it.
I dont want to add localhost to the the inventory list since i dont want to deploy any code there.
Odd thing is, this works fine from my local computer. Its just an issue on the remote server that i need to run this on.
ansible-playbook -i inventory/dev/ -l ~tag_role_web full-deploy.yml
Playbook:
- name: Get latest Code
gather_facts: no
hosts: localhost
vars:
next_color_name: "{{ lookup('file', './src/nextArchive') }}"
update_archive: "{{ next_color_name }}-web"
roles:
- role: update-code
- name: Deploy web code
hosts: all
vars:
latest_archive: "{{ lookup('file', './src/nextArchive') }}"
roles:
- role: deploy-web