What is the play that uses ssl_certs_dir?

--
Todd


On Tuesday, August 28, 2018 at 9:12:40 AM UTC-4, [email protected] 
wrote:
>
> Hi,
>  
> I am experiencing something similar to this issue Ansible group_vars from 
> inventory don't support repeated hosts 
> <https://github.com/ansible/ansible/issues/17243>.
>
> My main playbook is:
>
> *site.yml*
>
> - name: Configure acceptance server
>   hosts: acceptance
>   roles:
>     - common
>   tags: acceptance
>
>
> - name: Configure production server
>   hosts: production
>   roles:
>     - common
>   tags: production
>
>
> *hosts*
> [acceptance]
> 127.0.0.1 ansible_connection=local
>
> [production]
> 127.0.0.2 ansible_connection=local
>
> In the group_vars I have the following files:
>
> *acceptance*
> # Application
> app_name: snow_proxy
> cert_name: vcpe-le-snow-proxy-acc
>
>
> # Web Server
> ## deploy_ssl true for HTTPS, false for only HTTP
> deploy_ssl: true
> ## local directory SSL certificates should be located here
> ssl_certs_dir: /home/mid/certs
>
>
> *production*
> # Application
> app_name: snow_proxy
> cert_name: vcpe-le-snow-proxy-acc
>
>
> # Web Server
> ## deploy_ssl true for HTTPS, false for only HTTP
> deploy_ssl: true
> ## local directory SSL certificates should be located here
> ssl_certs_dir: /home/mid/prod/certs
>
> When running the playbook I expect the correct set of variables will be 
> loaded depending on the tag, but in both cases it seems the group_vars are 
> overriding each other because the same host is repeated in both groups.
>
> ansible-playbook -i hosts site.yml --tags acceptance
>
> ....
> Unable to find '/home/mid*/prod/certs/*vcpe-le-snow-proxy-acc.crt' in 
> expected paths.
> ....
>
>
> ansible-playbook -i hosts site.yml --tags production
>
> ....
> Unable to find '/home/mid*/prod/certs/*vcpe-le-snow-proxy-acc.crt' in 
> expected paths.
> ....
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1624cbed-6446-4569-9206-12f33bb9fe7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to