NewNewYorkBridges / ansible-tor-bridge

Ansible role to deploy Tor Bridge nodes.
GNU General Public License v3.0
7 stars 5 forks source link

"-t tor_install" doesn play with "--limit <host>" #16

Open toralf opened 2 years ago

toralf commented 2 years ago

Whilst this works fine:

$ ansible-playbook --limit buddelflink -i inventory/hosts.yml -t tor_config playbooks/deploy.yml 

PLAY [Deploy Public Tor Bridges] ************************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************
ok: [buddelflink]

TASK [alphacorvus.ansible_tor_bridge : Set OS specific variables] ***************************************************************************************************************************
ok: [buddelflink]

TASK [alphacorvus.ansible_tor_bridge : Configure Torrc file] ********************************************************************************************************************************
ok: [buddelflink]

...

A similar call however does not run:

 $ ansible-playbook --limit buddelflink -i inventory/hosts.yml -t tor_install playbooks/deploy.yml 

PLAY [Deploy Public Tor Bridges] ************************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************
ok: [buddelflink]

TASK [alphacorvus.ansible_tor_bridge : Set OS specific variables] ***************************************************************************************************************************
ok: [buddelflink]

PLAY [Deploy Private Tor Bridges] ***********************************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP **********************************************************************************************************************************************************************************
buddelflink                : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
toralf commented 2 years ago

And here's the playbook:

$ cat playbooks/deploy.yml 
---

- name: Deploy Public Tor Bridges
  hosts: public_bridges
  become: yes
  roles:
    - alphacorvus.ansible_tor_bridge

- name: Deploy Private Tor Bridges
  hosts: private_bridges
  become: yes
  roles:
    - alphacorvus.ansible_tor_bridge