=> {
"changed": false,
"results": [
{
"defaultnamingcontext": "dc=mysrv,dc=example,dc=com",
"dn": ""
}
]
}
Leave the bind_dn null and the ldap_search module converts that to
anonymous. And leave dn null to specify the
I am trying to use community.general.ldap_search to return the RootDSE from
a LDAP server (RedHat Directory Server). The LDAP server is configured to
allow anonymous access to the RootDSE (nsslapd-allow-anonymous-access:
rootdse) and I can retrieve it with ldapsearch:
ldapsearch -LLL -x -H lda
n Mon, 18 Jan 2021 11:32:05 -0800 (PST)
>> > "'Mark Tovey' via Ansible Project"
>> > wrote:
>> >
>> > > I need to determine how many hosts are left to be worked on in a
>> playbook
>> > > run. I have set serial to 1
I need to determine how many hosts are left to be worked on in a playbook
run. I have set serial to 1 in the playbook so only one host will be
worked on at a time, and I have a long pause at the bottom of the playbook
to force a settling period between hosts. But if the current host is the
la
Unfortunately, I am under the constraint that I must use the password store
that the company has chosen to use (Passwordstate). I have that part
working fine. I am able to push passwords into it and pull them back out
with no problem. But the general structure of your code will probably be
I am trying to develop a playbook to set a common password on groups of
servers. The concept is that all servers within a given group would
receive one randomly generated password, all servers within the next group
would receive a different randomly generated password, and so on. The
issue
is started, and set SSH_AUTH_SOCK to that *before* you execute ansible.
On Mon, Jan 6, 2020 at 11:43 AM 'Mark Tovey - DSV' via Ansible Project
mailto:ansible-project@googlegroups.com>>
wrote:
You are missing the point. I am not trying to set SSH_AUTH_SOCK on the
target host.
you need in Ansible,
before executing Ansible.
On Mon, Jan 6, 2020 at 11:24 AM 'Mark Tovey - DSV' via Ansible Project
mailto:ansible-project@googlegroups.com>>
wrote:
In my test, the target host is localhost, the same place that the lookup
runs. But the lookup call was o
Subject: Re: [ansible-project] Export environment variables
lookups do not run on the target host, and are not affected by the
`environment` keyword.
On Mon, Jan 6, 2020 at 10:55 AM 'Mark Tovey' via Ansible Project
mailto:ansible-project@googlegroups.com>>
wrote:
I nee
I need to export some environment variables before running a task, but it
appears that setting variables with "environment" does not export them;
they remain local. For test, I wrote the following simple playbook:
---
- hosts: localhost
gather_facts: no
environment:
MYVAR: "TEST1"
nowhere. I will keep poking at it to see if I can narrow it down some.
-Mark
------
Mark Tovey - UNIX Engineer
DSV | 110 N Marine Dr. | Bldg 1 | Portland | Oregon | 97217 | USA
ma
.x86_64
python-slip-dbus-0.4.0-4.el7.noarch
python-netaddr-0.7.5-9.el7.noarch
python-iniparse-0.4-9.el7.noarch
python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--
Mark Tovey
ot;: {"micro": 5, "major": 2,
"releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython",
"has_sslcontext": true, "version_info": [2, 7, 5, "final", 0]},
"ansible_i
everything you could on
your own. Life always looks easy after you are given the answer but by design
is a struggle to get there :-)
On Thu, Aug 22, 2019 at 11:13 AM 'Mark Tovey - DSV' via Ansible Project
mailto:ansible-project@googlegroups.com>>
wrote:
As usual, the answer is simpl
-
From: ansible-project@googlegroups.com On
Behalf Of James Cassell
Sent: Wednesday, August 21, 2019 5:40 PM
To: Ansible List
Subject: Re: [ansible-project] More dynamic variables
On Wed, Aug 21, 2019, at 2:35 PM, 'Mark Tovey' via Ansible Project wrote:
>
> I hate having to c
I hate having to constantly go here to solve issues like this,
especially when the issues I keep presenting are all so similar, but
eventually I have to just give up trying to solve this on my own and ask.
I want to define a structure in a vars file that looks like the
following:
myos
that got me what I am trying to achieve.
-Mark
------
Mark Tovey - UNIX Engineer
DSV | 110 N Marine Dr. | Bldg 1 | Portland | Oregon | 97217 | USA
markto...@dsv.com | +1 503 222-
Of Kai Stian Olstad
Sent: Saturday, July 27, 2019 8:06 AM
To: ansible-project@googlegroups.com
Subject: Re: [ansible-project] Yet another dynamic variable problem
On 24.07.2019 05:34, 'Mark Tovey - DSV' via Ansible Project wrote:
> Okay, I did not describe the problem properly. T
a dictionary. The debug task is able to
interpret that but the lookup plugin is not.
So now what?
------
-Original Message-
From: 'Mark Tovey - DSV' via An
James Cassell
Sent: Tuesday, July 23, 2019 6:03 PM
To: Ansible List
Subject: Re: [ansible-project] Yet another dynamic variable problem
On Tue, Jul 23, 2019, at 6:19 PM, 'Mark Tovey' via Ansible Project wrote:
>
> I am trying to generate a variable name dynamically,
I am trying to generate a variable name dynamically, but so far I have been
stymied.
I have lists whose names are based upon the OS name:
myos7:
- os7package1
- os7package2
- os7package3
myos8:
- os8package1
- os8package2
- os8package3
I want to access these lists dy
ist1 | map('regex_replace', '^(.*)$','label \\1')
| list }} "
- name: print second fact
debug:
var: var1
Regards,
Matt
On Friday, May 3, 2019 at 3:00:45 AM UTC+10, Mark Tovey wrote:
I have a list:
list1
- value1
- value2
and I wa
I have a list:
list1
- value1
- value2
and I want to use set_fact create a new variable that contains these
variables with a label in front of them, so that this debug task:
- debug:
msg: "{{var1}}"
would result in output that looks like this:
label value1
label
I knew it was going to be simple, although I thought I tried that one too.
But that got it.
Thanks!
--
[Description: cid:image001.gif@01D09EC0.4CEB1A90]Mark Tovey
I have a dictionary structure that looks like the following:
myservers:
DC1:
CORE: 10.10.10.20
DMZ: 10.10.20.20
DC2:
CORE: 10.10.10.30.20
DMZ: 10.10.10.40.20
DC3:
CORE: 10.10.50.20
DMZ: 10.10.60.20
DC4:
CORE: 10.10.70.20
DMZ: 10.10.80.20
And another dictionary that look
-Mark
--
Mark Tovey - UNIX Engineer
DSV | 110 N Marine Dr. | Bldg 1 | Portland | Oregon | 97217 | USA
markto...@dsv.com | +1 503 222-5546
-Original Message-
From: ansible-project@googlegroups.com On
Behalf Of S C Rigler
Sent: Tuesday, Mar
Thanks!
--
[Description: cid:image001.gif@01D09EC0.4CEB1A90]Mark Tovey - UNIX Engineer
DSV<http://www.dsv.com/> | 110 N Marine Dr. | Bldg 1 | Portland | Oregon |
I am working on a playbook to replace the comment field in a server's
password file. I was trying to use the replace module to do this. But it
began crashing on one server. By elimination I was able to isolate the
problem to one user's account entry in the password file. The user is
Dani
On Thursday, March 8, 2018 at 1:43:44 PM UTC-8, Mark Tovey wrote:
>
>
> I am experimenting with the networking modules in Ansible to try to
> understand how we can use Ansible to manage our network devices. To that
> end, I have written a simple playbook to apply an ACL t
I am experimenting with the networking modules in Ansible to try to
understand how we can use Ansible to manage our network devices. To that
end, I have written a simple playbook to apply an ACL to a router. It
works well, except I notice that each time the playbook is run, the change
is
I thought it might be the special characters in my password. They
sometimes do not pass properly in pipeline streams.
I tried the following:
ssh -tt sinuid02 "echo 'my#password' | sudo -S id"
uid=0(root) gid=3(sys)
groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users),
It worked exactly as you predicted, disabling pipelining resulted in
success, enabling pipelining caused failure:
sinuid06-> ANSIBLE_SSH_PIPELINING=0 ansible sinuid02 -bK -m ping -
Using /InfraRepo/Ansible/config/ansible.cfg as config file
SUDO password:
Loading callback plugin minimal
The debug output from when I ANSIBLE_KEEP_REMOTE_FILES=1 is
significantly different from when I do not set that:
sinuid06-> ANSIBLE_KEEP_REMOTE_FILES=1 ansible sinuid02 -sK -m ping -
Using /InfraRepo/Ansible/config/ansible.cfg as config file
SUDO password:
Loading callback plugin minimal
- did not show anything that was helpful:
sinuid06-> ansible sinuid02 -sK -m ping -
Using /InfraRepo/Ansible/config/ansible.cfg as config file
SUDO password:
Loading callback plugin minimal of type stdout, v2.0 from
/usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.
On Tuesday, August 1, 2017 at 6:51:26 AM UTC-7, Toshio Kuratomi wrote:
>
> Not sure the answer to your question but you can get some more information
> from ansible that may help.
>
> Use -v as an option and you'll see a printout of what command lines
> ansible is trying to run over the ssh
I have a group of old HP-UX servers that I need to manage with
Ansible. I started by installing python-2.7.13 on one server, then testing
with a simple Ansible ping:
sinuid06-> ansible sinuid02 -m ping
sinuid02 | SUCCESS => {
"changed": false,
"ping": "pong"
}
That went well.
On Friday, January 27, 2017 at 3:25:32 AM UTC-8, Jinesh Choksi wrote:
>
>
> *File: example_file.txt*
> string1 string2 string3
> string4 string5 string0
> string7 string8 string9
>
>
> *File: run.sh*
>
> #!/usr/bin/env bash
> ansible-playbook -vvv -i 'localhost,' -c local test.yml
>
>
> *File: te
On Thursday, January 26, 2017 at 7:59:34 AM UTC-8, Jinesh Choksi wrote:
>
> Hi Mark,
>
> I found the following
> https://relativkreativ.at/articles/how-to-use-ansibles-lineinfile-module-in-a-bulletproof-way
>
> very useful when I needed to find a reliable way to edit lines in a
> configuratio
On Wednesday, January 25, 2017 at 10:43:10 PM UTC-8, Kai Stian Olstad wrote:
>
> On 25.01.2017 23:37, mark@dsv.com wrote:
> > I have a problem where a line that contains a certain space delimited
> > string must exist in a file. The string can be anywhere in the line:
> > start, middle,
I have a problem where a line that contains a certain space delimited
string must exist in a file. The string can be anywhere in the line:
start, middle, or end. If a line that contains that string does not exist,
then a line with that string needs to be inserted into the file. I have
been
On Monday, 14 November 2016 14:38:59 UTC-8, mark@dsv.com wrote:
>
>
>
> On Monday, November 14, 2016 at 2:07:05 PM UTC-8, mto...@go2uti.com wrote:
>>
>>
>> I wrote the below to ensure certain options are set in a server's
>> /etc/fstab file for CIS compliance:
>>
>> - name: Describe file s
41 matches
Mail list logo