[ansible-project] using tests to match a hostname

2017-12-04 Thread Luke Miller
I am trying to use tests to match a hostname, I want hostnames that end in the letter "d", they are non-production hosts, here is what I have: - name: Register to Foreman Redhat non-Prod redhat_subscription: state: present activationkey: "Non-Prod-Redhat-7" org_id: "Default_Organiz

Re: [ansible-project] using tests to match a hostname

2017-12-04 Thread Pshem Kowalczyk
The match is a regular expression match (not a wildcard match). If you want something ending in 'd' try this: search('d$') kind regards Pshem On Tue, 5 Dec 2017 at 13:08 Luke Miller wrote: > > I am trying to use tests to match a hostname, I want hostnames that end in > the letter "d", they ar