I use:
*ansible-playbook myplaybook.yml -i hosts -e host=myhost.mydomain.com
<http://myhost.mydomain.com>*
and in the playbook:
*hosts: "{{ host }}"*
That works well for me. I think "all" is much too dangerous, and
hardcoding a host or group is too limiting.
--
B
I don't think you can use caret " ^ " in the middle of a regex. It is
probably trying to match a literal ^ symbol and not finding it. Try
removing the caret.
--
Bob Harold
--
You received this message because you are subscribed to the Google Groups
"Ansible Development
oes not line up
2. tabs vs spaces (they look the same, but count as different indents)
3. invisible characters (look like blanks or none, but are not understood
by the program)
I don't see anything, but the mail client could have changed characters.
yaml still confuses me.
Should "- always&qu
On Thu, Aug 15, 2019 at 4:07 PM Bob Harold wrote:
>
> On Thu, Aug 15, 2019 at 12:08 PM Chris Jackson wrote:
>
>>
>> Hi all,
>>
>> Tearing my hair out trying to resolve this. I am getting the following:-
>>
>> "reason": "failed
LIB\BIN\db2licm -a
>{{ temp_area }}\{{ db2_lic_file }}
>
> Can anyone help?
>
> Many Thanks
>
> Chris.
>
My first guess is that the backslash "\" characters are 'escaping' the
following character. Try doubling each of them "\\"
--
> inventory file, and then write another playbook to add them to the domain?
> Any better approaches?
>
If Active Directory and the clients are configured properly, the Active
Directory DNS should be updated automatically. I do not know the details.
--
Bob Harold
--
You received thi
On Wed, Nov 14, 2018 at 3:12 PM flowerysong wrote:
> On Wednesday, November 14, 2018 at 11:19:55 AM UTC-5, Bob Harold wrote:
>>
>>
>> On Tue, Nov 13, 2018 at 5:37 PM Brian Coca wrote:
>>
>>> 1 play before your normal play:
>>>
>>>
&g
_facts: False
tasks:
- ping:
register: pingtest
- hosts: hostb
when: pingtest.failed
But so far I cannot get it to work.
I am looking to use the same logic to connect to the internal or external
IP of an AWS server depending on where I happen to be running Ansible at
that moment.
--