Re: [ansible-project] Ansible templates. Joining item vars on one line with static text.

2024-08-19 Thread Michael Starling
Thank you both for the suggestions. Much appreciated. On Sun, Aug 18, 2024 at 12:05 PM Vladimir Botka wrote: > On Sun, 18 Aug 2024 15:11:11 +0100 > Will McDonald wrote: > > > There may be more elegant ways to achieve this > > The below declaration should to the job > > seeds: "{{ ansible_pl

[ansible-project] Ansible templates. Joining item vars on one line with static text.

2024-08-18 Thread Michael Starling
Hello. Consider I have this variable list that can contain as little as 1 and up to 4 items. ldapservers: - server1 - server2 Consider this line in my ldap.conf template. URI ldap://{{ ldapservers(' ') }}/ I would like the resulting file to look like this: URI ldap://server1/ ldap:/

Re: [ansible-project] running handlers

2024-03-23 Thread Michael DiDomenico
thanks, eventually after a few hours i came to a similar conclusion, i was hoping there was a more elegant way which didn't need a series of finds On Fri, Mar 22, 2024 at 4:01 PM Vladimir Botka wrote: > On Fri, 22 Mar 2024 14:15:03 -0400 > Michael DiDomenico wrote: > > >

[ansible-project] running handlers

2024-03-22 Thread Michael DiDomenico
i'm trying to copy a bunch of ssl ca certs into a directory. this works file with the copy module and if it sees a new one it runs a handler to rehash all the certs in the directory to create *.0 symlinks to each of the certs however, if an additional cert gets put in there by someone and they do

[ansible-project] Re: hostname in chroot

2024-03-15 Thread Michael DiDomenico
m, which i verified with - hostname outside the chroot hosta - inside the chroot ansible -m setup localhost | egrep "hostname|nodename|fqdn" ansible_hostname = "hostb" ansible_fqdn = "hostb" ansible_nodename = "hostb" On Thu, Mar 14, 2024 at 1:35 PM Michael

[ansible-project] hostname in chroot

2024-03-14 Thread Michael DiDomenico
i have a series of playbooks that use ansible_hostname to determine whether tasks should run. on a host these work fine as one would expect, but when running ansible inside a chroot environment with /proc,sys,dev mounted. ansible pulls the hostname from the host outside of the chroot into ansible_

[ansible-project] Event Driven Ansible and target hosts in rulebooks

2024-03-06 Thread Michael Schwartzkopff
om the action, which host to target? Michael. -- 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 ansible-project+unsubscr...@googlegroups.com. To view th

Re: [ansible-project] fact disappears after regather

2023-11-03 Thread Michael DiDomenico
it looks like it's related to my fact pathing in some manner. in ansible.cfg we defined fact_path=/ansible/facts and there are no facts in /etc/ansible/facts.d. if i copy the fstab.fact file from /ansible/facts to /etc/ansible/facts.d then i do in get the variable before and after the setup modul

Re: [ansible-project] fact disappears after regather

2023-11-03 Thread Michael DiDomenico
okay, that's understood. but i'm not sure my behavior is reflecting what you're saying. either because ansible is doing something unexpected, or more likely i'm doing something wrong. what i see is using this playbook - name: dump vars hosts: all connection: local gather_facts: true ta

Re: [ansible-project] fact disappears after regather

2023-11-02 Thread Michael DiDomenico
ok, my terminology was a little off, i'm okay with it overwriting then entire fact tree. but i'm still not sure why the entire branch of ansible_local disappears after the second run of gathering. is there something different happening when the play runs "gather_facts" version ansible.builtin.set

[ansible-project] fact disappears after regather

2023-11-02 Thread Michael DiDomenico
i have a local fact defined. when i first run ansible and it runs through the gather facts stage, the fact shows up just fine. i do some tasks and then regather the facts with setup - name: regather facts ansible.builtin.setup: i can see the gather task run, but when i look for that same vari

Re: [ansible-project] ansible playbook error using firewalld to set policy

2023-08-03 Thread Michael DiDomenico
i'm not an expert, but i think it's the combination of interface and target that's tripping you up. believe you have to splt the interface assignment and the zone assignment into two seperate tasks On Thu, Aug 3, 2023 at 12:32 AM Deepak B K wrote: > > > Hi Group, > > I am trying to write an ansi

[ansible-project] Re: copy files based on descending precedence

2023-04-18 Thread Michael DiDomenico
ansible.builtin.copy: src: "{{ lookup('ansible.builtin.first_found', findme) }}" dest: "/{{item.src}}" owner: "{{item.owner}}" group: "{{item.group}}" mode: "{{item.mode}}" with_items: - { src: "etc/security/access.

[ansible-project] copy files based on descending precedence

2023-04-18 Thread Michael DiDomenico
the below block is an example block i use in a few places to copy in config files and select a host specific file if it exists. not sure if it's the best way, but it works for now. what i'd like to do is add in group selection as well. ie if there's group file look for that first so above line

Re: [ansible-project] merging lists

2023-04-18 Thread Michael DiDomenico
] > > } > > > TASK [debug] > *** > > ok: [localhost] => { > > "listb": [ > > { > > "four": "str4", > > "three": "str3" > > } > > ] > > } &

Re: [ansible-project] merging lists

2023-04-18 Thread Michael DiDomenico
On Tue, Apr 18, 2023 at 8:56 AM 'Rowe, Walter P. (Fed)' via Ansible Project wrote: > > TASK [debug] > *** > ok: [localhost] => { > "listb": [ > [ > { > "

Re: [ansible-project] merging lists

2023-04-17 Thread Michael DiDomenico
thanks for the help, but that's not exactly what i am after. i'm attempting to avoid creating a third variable. but maybe that's the only way On Mon, Apr 17, 2023 at 7:05 PM Vladimir Botka wrote: > > On Mon, 17 Apr 2023 18:22:10 -0400 > Michael DiDomenico wrote:

[ansible-project] merging lists

2023-04-17 Thread Michael DiDomenico
i want to do this, but i'm not getting exactly what i want lista: - { one: 'str1', two: 'str2' } listb: - "{{ lookup('vars','lista') }}" - { one: 'str1', two: 'str2' } the output i want is listb: { one: 'str1', two: 'str2' }, { one: 'str1', two: 'str2' } but what i get is listb: [ { one: 'str

Re: [ansible-project] firewalld module

2023-01-09 Thread Michael DiDomenico
726561 > > On Mon, Jan 9, 2023 at 7:29 AM Michael DiDomenico > wrote: >> >> this probably a question for redhat, but i'm hoping someone already >> asked and answered this. >> >> according to this blog post >> https://www.redhat.com/en/blog/updates-us

[ansible-project] firewalld module

2023-01-09 Thread Michael DiDomenico
this probably a question for redhat, but i'm hoping someone already asked and answered this. according to this blog post https://www.redhat.com/en/blog/updates-using-ansible-rhel-86-and-90 redhat switched from ansible to ansible-core. which means to me that when i install ansible-core i get the u

Re: [ansible-project] slow inventory build

2023-01-05 Thread Michael DiDomenico
trace the ansible-inventory execution to check what libraries and > syscalls are used: > > $ strace ansible-inventory -i inventory/hosts --list 2>&1 | grep libya > openat(AT_FDCWD, "/lib64/libyaml-0.so.2", O_RDONLY|O_CLOEXEC) = 3 > > $ rpm -qf /lib64/libyaml-0.so.2

Re: [ansible-project] slow inventory build

2023-01-05 Thread Michael DiDomenico
thanks i did see that yesterday when i opened my ticket. https://github.com/ansible/ansible/issues/79664 if there's more info i can provide please let me know On Thu, Jan 5, 2023 at 11:54 AM Brian Coca wrote: > > It could be related to this > https://github.com/ansible/ansible/issues/79652 (see

Re: [ansible-project] slow inventory build

2023-01-03 Thread Michael DiDomenico
it is installed. is there a way for me to confirm that ansible is actually using it? $ rpm -qa | grep -i yaml perl-CPAN-Meta-YAML-0.018-397.el8.noarch python3-pyyaml-3.12-12.el8.x86_64 libyaml-0.1.7-5.el8.x86_64 On Sat, Dec 31, 2022 at 6:49 PM Brian Coca wrote: > > Do you have libyaml installe

[ansible-project] slow inventory build

2022-12-28 Thread Michael DiDomenico
i have a flat list of hosts, no groups, no variables, total is over 15k. when i run $ head inv-expanded.yml all: hosts: admin: admin1: admin2: admin3: admin4: admin5: admin6: ...snipped... $ time ansible-inventory -i inv-expanded.yml --list > a real 0m28.334s user 0

[ansible-project] reversing json log output

2022-12-08 Thread Michael DiDomenico
i'm logging all my output from ansible through the json callback and it's working fine. are there any tools that take the json output and convert it back into standard textual (human) ansible log format? i googled around but nothing turned up and the terms ansible/json/log return a bunch of unrel

[ansible-project] Re: Ansible custom module - DIY Connection to remote host

2022-12-06 Thread 'Michael Ströder' via Ansible Project
AFAICS this won't result in a SSH connection to local host. But of course you have to manage the DB connection inside your module. Ciao, Michael. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group an

Re: [ansible-project] Ansible custom module - DIY Connection to remote host

2022-12-05 Thread 'Michael Ströder' via Ansible Project
trying to achieve. Ciao, Michael. -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discuss

Re: [ansible-project] Windows Become Confusion

2022-10-13 Thread Michael Nelson
Hi, I think you playbook will work if you use CredSSP as the connection method: https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html CredSSP permits ansible to target other hosts from that it initially connected to. Regards, antuelle78 On 13/10/2022 02:18, Joefrey Kimmel w

Re: [ansible-project] ansible-navigator : Error with awx_display

2022-10-04 Thread Michael Nelson
The base images are here: https://quay.io/repository/ansible/ansible-runner?tab=tags You can take a look at this for guidance: https://github.com/antuelle78/ansible-builder-awxee Hope that helps. Regards, Antuelle78 On 04/10/2022 17:40, JS G. wrote: Hello, With quay.io/ansible/awx-ee:lat

Re: [ansible-project] ansible-navigator : Error with awx_display

2022-10-04 Thread Michael Nelson
Hi, Looks like you are using an image built for use with awx. Try with this config: --- ansible-navigator:   execution-environment:     container-engine: podman     enabled: true     environment-variables:   set:     ANSIBLE_CONFIG: ansible.cfg     image: antuelle78/awx-ee:latest     pu

Re: [ansible-project] Centos7, Python3, Yum, DNF & builtin.command OH MY!

2022-09-28 Thread Michael Nelson
Hi, I have managed to by-pass such issues by setting the ansible_python_interpreter on the CentOS 7 hosts. May not be the same issue, but just something to pay attention to. Regards, Antuelle78 On 28/09/2022 19:04, dma...@istreamplanet.com wrote: Okay!  So, we have a bunch of proprietary s

Re: [ansible-project] Molecule : basic documentation

2022-09-18 Thread Michael Nelson
ect/d4d16073-40e2-9549-5d18-05dbf8dcc95b%40sudheer.net <https://groups.google.com/d/msgid/ansible-project/d4d16073-40e2-9549-5d18-05dbf8dcc95b%40sudheer.net?utm_medium=email&utm_source=footer>. -- Michael NELSON -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] How can I distinguish completed jobs in Ansible Tower

2022-08-29 Thread Michael Burch
Stone wrote: > On Tuesday 23 August 2022 at 22:16:32, Michael Burch wrote: > > > Good afternoon - > > > > We have a playbook that is used by multiple groups. > > What is a "group"? > > > This playbook is neutrally stored and run from a common area. >

[ansible-project] Collections - Not working

2022-08-29 Thread Michael Burch
Good afternoon - I am attempting to add a collection for awx.awx I want to leverage the tower_label functionality to give some division to playbooks that are being executed under the same job template for multiple projects. I added a requirements.yml to the collections directory. Contents of

[ansible-project] How can I distinguish completed jobs in Ansible Tower

2022-08-23 Thread Michael Burch
Good afternoon - We have a playbook that is used by multiple groups. This playbook is neutrally stored and run from a common area. How can we, for lack of a better term, label the job at run time so that we can associate it to the PROJECT that is executing it. And even better, how can we inc

Re: [ansible-project] win_ping.yml

2022-08-23 Thread Michael Nelson
Hi again, You need to configure the credential in Tower and apply it to your template. In the credential settings you set the become user: Good luck, On 23/08/2022 14:03, 'Nicholas Branson' via Ansible Project wrote: Thanks for replying Michael, I have made changes as recommend

Re: [ansible-project] win_ping.yml

2022-08-23 Thread Michael Nelson
0googlegroups.com <https://groups.google.com/d/msgid/ansible-project/f875f002-c45c-4fd4-808a-1c189d6c30fan%40googlegroups.com?utm_medium=email&utm_source=footer>. -- Michael NELSON -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To u

Re: [ansible-project] EVAL OF Variable

2022-08-17 Thread Michael Burch
Yes Resolved Thanks, On Wednesday, August 17, 2022 at 1:22:41 PM UTC-4 Richard Megginson wrote: > On Wed, Aug 17, 2022 at 11:19 AM Michael Burch wrote: > >> Good afternoon Group. Any help is appreciated. >> >> I have a survey that collects the name of a proje

[ansible-project] EVAL OF Variable

2022-08-17 Thread Michael Burch
Good afternoon Group. Any help is appreciated. I have a survey that collects the name of a project (project_name). Lets call it SKILL I have variables set in the playbook for all the projects to save their USER and Password Info. - SKILL_UNAME - SKILL_PWORD I have a task that has to account

[ansible-project] json stdout

2022-08-11 Thread Michael DiDomenico
i'm working with the json callback, specifically it's use with ANSIBLE_STDOUT_CALLBACK. it's logging all it's output to json, so that's great, but it also includes all the gathering facts play data play as well. is there a way to turn off that output in the json data? i don't want to turn off fa

Re: [ansible-project] Speeding up a task

2022-07-30 Thread &#x27;Michael Ströder' via Ansible Project
- Trigger rsync [1] if most of the files are static - Pack the files into a single tar.gz and transfer and extract that [2][3] Ciao, Michael. [1] https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html [2] https://docs.ansible.com/ansible/latest/collectio

[ansible-project] Re: python error during task

2022-07-22 Thread Michael DiDomenico
at all straight, but that's the jist of it On Fri, Jul 22, 2022 at 2:34 PM Michael DiDomenico wrote: > > sorry for the cross post, i sent this to the devel list by mistake > --- > i have compiled a separate version of openssl 1.1.1, python 3.10.5, > and ansible 2.13.2

[ansible-project] python error during task

2022-07-22 Thread Michael DiDomenico
sorry for the cross post, i sent this to the devel list by mistake --- i have compiled a separate version of openssl 1.1.1, python 3.10.5, and ansible 2.13.2 into my home directory. i have the interpreter_python set in the ansible.cfg file to point to the version of python in my home directory. o

Re: [ansible-project] Can we run roles in parallel for multiple hosts?

2022-06-27 Thread &#x27;Michael Ströder' via Ansible Project
On 6/27/22 21:59, Marc Haber wrote: On Mon, Jun 27, 2022 at 05:56:01PM +0200, 'Michael Ströder' via Ansible Project wrote: 2. IIRC it's not maintained anymore and it does not work with ansible 2.10+. This might be weirdness with Debian version numbers, but my ansible installed

Re: [ansible-project] Can we run roles in parallel for multiple hosts?

2022-06-27 Thread &#x27;Michael Ströder' via Ansible Project
ped up ansible runs. I can confirm the speed-up achieved by mitogen but there are two issues: 1. Some tasks won't work properly, e.g. if you have to set ansible_python_interpreter for a task. 2. IIRC it's not maintained anymore and it does not work with ansible 2.10+. Ciao, Michael.

Re: [ansible-project] Problem with WinRM Connections

2022-06-13 Thread Michael Kennedy
or principal uber...@domain.ca >>> kinit succeeded for principal uber...@domain.ca >>> * WINRM CONNECT: transport=kerberos >>> endpoint=https://inventory_hostname:5986/wsman >>> <https://inventory_hostname:5986/wsman>* >>> kinit succeeded for principa

Re: [ansible-project] Problem with WinRM Connections

2022-06-13 Thread Michael Kennedy
er...@domain.ca On Monday, June 13, 2022 at 10:11:56 AM UTC-7 urs...@gmail.com wrote: > Hi Michael, > > OK, I should have said so earlier but as well as kinit and klist ping also > worked, but ansible still would not connect … and gave me exactly the error > message you are gettin

[ansible-project] Re: Problem with WinRM Connections

2022-06-13 Thread Michael Kennedy
formation', 851968), ('Server not found in Kerberos database', -1765328377)) Mikes-WinTest.domain.ca | UNREACHABLE! => { "changed": false, "msg": "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure. Minor code may provide more in

[ansible-project] Re: Problem with WinRM Connections

2022-06-13 Thread Michael Kennedy
ain.ca Address: 192.168.8.44 Name:domain.ca Address: 192.168.8.21 Name:domain.ca Address: 192.168.12.201 Name:domain.ca Address: 192.168.9.150 [root@ansible ~]# On Monday, June 13, 2022 at 3:27:20 AM UTC-7 urs...@gmail.com wrote: > Hi Michael, > > A stab in the dark wi

[ansible-project] Re: Problem with WinRM Connections

2022-06-13 Thread Michael Kennedy
4 Name:domain.ca Address: 192.168.8.21 Name:domain.ca Address: 192.168.12.201 Name:domain.ca Address: 192.168.9.150 [root@ansible ~]# On Monday, June 13, 2022 at 3:27:20 AM UTC-7 urs...@gmail.com wrote: > Hi Michael, > > A stab in the dark winrm or Kerberos specifically de

[ansible-project] Re: Problem with WinRM Connections

2022-06-13 Thread Michael Kennedy
fruit such as NTP, Firewalls, Windows Firewall, Ethernet adapter zone. On Monday, June 13, 2022 at 3:27:20 AM UTC-7 urs...@gmail.com wrote: > Hi Michael, > > A stab in the dark winrm or Kerberos specifically depend on a fully > working DNS. > Is your tower cluster properly

[ansible-project] Re: Problem with WinRM Connections

2022-06-12 Thread Michael Kennedy
ror(': Failed to establish a new connection: [Errno -2] Name or service not known'))*", "changed": false } On Saturday, June 11, 2022 at 6:55:15 PM UTC-7 Michael Kennedy wrote: > I am having a problem running WinRM connections with both basic and > kerberos au

[ansible-project] Problem with WinRM Connections

2022-06-11 Thread Michael Kennedy
I am having a problem running WinRM connections with both basic and kerberos auth. My Ansible is deployed with RedHat AAP 4.2.0 on RHEL 9. I setup a test Windows 2019 machine and ran the ConfigureRemotingForAnsible.ps1 script against the host. Rebooted the host for good measure. Tested f

Re: [ansible-project] Type Annotations + mypyc compiling ansible

2022-06-06 Thread Michael Ivanov
It can be firstly added to typeshed. пн, 6 июн. 2022 г., 19:56 Matt Martz : > We are working towards type annotations. I would recommend reading over > the proposal[1] that we have largely agreed to. But regardless, this isn't > something that will happen overnight, it will likely take years.

[ansible-project] Re: Type Annotations + mypyc compiling ansible

2022-06-05 Thread Michael
Hi, I've started adding type stubs for the Ansible codebase, currently its not public понедельник, 30 мая 2022 г. в 23:30:11 UTC+3, Cooper Lees: > Hi All, > > I saw https://github.com/ansible/ansible/issues/69424 indicated that type > annotations was not considered for the ansible code base. I

Re: [ansible-project] Track changes for further processing

2022-05-04 Thread &#x27;Michael Ströder' via Ansible Project
ech is designed for workstation logins after initial password reset. I'd recommend to implement a better password reset process which avoids this. Ciao, Michael. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe fro

Re: [ansible-project] Reading in extra files, as or into dicts?

2022-04-16 Thread &#x27;Michael Ströder' via Ansible Project
LDAP server) to choose from. Ciao, Michael. -- 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 ansible-project+unsubscr...@googlegroups.com. To

[ansible-project] Vendor dependencies

2022-04-14 Thread Michael
Hi, im new in ansible and ansible developing. Now im trying to develop own collection and I wanna bring typing annotations. Some of them require* typing-extensions*. I've created a folder *_vendor* in *plugins*, and import typing-extensions using relative import *from ..vendor.typing_extension

[ansible-project] Re: Wording ansible packages / updates (was: Ansible 5.6.0 has been released)

2022-04-07 Thread &#x27;Michael Ströder' via Ansible Project
hangelog, porting guide, docsite). I guess that Ansible users are normally system admins I'd expect to be used to dealing with multiple packages with interdependent version numbers. So technically correct language is probably the most useful form for this audience. Ciao, Michael. -- You

[ansible-project] Wording ansible packages / updates (was: Ansible 5.6.0 has been released)

2022-04-07 Thread &#x27;Michael Ströder' via Ansible Project
invoke pip install --upgrade ansible-core to get the updates. So this "implementation detail" is indeed quite relevant to Ansible users who want to properly maintain their controller. Ciao, Michael. -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Galaxy having issue ?

2022-02-28 Thread Michael Buluma
Seems to have been resolved. All okay now https://github.com/ansible/galaxy/issues/2891#issue-1146608071 On Tuesday, February 22, 2022 at 5:58:50 PM UTC+3 Matt Martz wrote: > Yes, there are some ongoing performance issue with galaxy.ansible.com. > Cause and time to resolution are unknown right

Re: [ansible-project] Re: ansible-galaxy and git verify-tag

2021-12-22 Thread &#x27;Michael Ströder' via Ansible Project
On 12/22/21 18:07, Nico Kadel-Garcia wrote: On Wed, Dec 22, 2021 at 12:00 PM 'Michael Ströder' via Ansible Project wrote: On 12/22/21 17:33, Michael Ströder wrote: Is it possible to make ansible-galaxy invoke 'git verify-tag' with a locally configured GPG public key

[ansible-project] Re: ansible-galaxy and git verify-tag

2021-12-22 Thread &#x27;Michael Ströder' via Ansible Project
On 12/22/21 17:33, Michael Ströder wrote: Is it possible to make ansible-galaxy invoke 'git verify-tag' with a locally configured GPG public key on tags specified as version: in requirements.yml? Hmm, seems there is no such thing yet: https://github.com/ansible/proposals/issues/36

[ansible-project] ansible-galaxy and git verify-tag

2021-12-22 Thread &#x27;Michael Ströder' via Ansible Project
HI! Is it possible to make ansible-galaxy invoke 'git verify-tag' with a locally configured GPG public key on tags specified as version: in requirements.yml? Thx in advance for any hint. Ciao, Michael. -- You received this message because you are subscribed to the Google Group

[ansible-project] execute task if warning

2021-12-16 Thread Michael
I task a task that disables selinux on a managed host before performing an installation. However ansible returning a warning informing that reboot is needed for setting to take effect: TASK [Gathering Facts] **

[ansible-project] ansible user MODULE FAILURE

2021-12-08 Thread Michael
*I have a task defined as follows:* - name: add postgres system user user: name: "{{ postgres_system_user }}" comment: Postgres User update_password: always expires: -1 password: "{{ postgres_system_user_password | password_hash('sha512') }}" group: "{{ postgres_system

[ansible-project] Unexpected behavior with cron

2021-07-28 Thread Michael van Santen
We checked the documentation but our configuration seems to be okay, also it worked in the previous version. Has anyone experienced this or has a guess what's going on? Regards Michael -- <https://www.basecom.de/newsletter/?utm_source=mailfooter> Besuchen Sie u

Re: [ansible-project] Creating a Group and Project within a group with gitlab module

2021-06-25 Thread Michael Weiner
Anyone know who maintain the git lab project modules? On Wed, Jun 23, 2021 at 12:16 PM Michael Weiner wrote: > Doesn't work at all > > On Wed, Jun 23, 2021 at 12:05 PM Wei-Yen Tan wrote: > >> >> There is a git lab project module. Use that and refer to the gitlab g

Re: [ansible-project] Creating a Group and Project within a group with gitlab module

2021-06-23 Thread Michael Weiner
Doesn't work at all On Wed, Jun 23, 2021 at 12:05 PM Wei-Yen Tan wrote: > > There is a git lab project module. Use that and refer to the gitlab group > in it > > > On Wed, 23 Jun 2021 at 11:38 PM Michael Weiner wrote: > >> Hi all, >> >> I want to cre

[ansible-project] Creating a Group and Project within a group with gitlab module

2021-06-23 Thread Michael Weiner
Hi all, I want to create a group in gitlab, and within that group create a project. Any suggestions? I can run the gitlab_group module, and it does create, what appears to be a subgroup but not a project within that group I had created. -- You received this message because you are subscribe

Re: [ansible-project] Unable to run azure resource group creation playbook

2021-05-20 Thread Michael Mullay
If you installed ansible with pip, you can use the file (from the base of your virtual environment) ./lib/python3.8/site-packages/ansible_collections/community/azure/tests/sanity/requirements.txt as input for 'pip install -r . From my install, it contains the following, which worked for me getting

[ansible-project] Re: python 'requests' module installed but ansible doesnt think it is

2021-05-17 Thread michael hill
Any progress on this thread? I am having this exact same issue. I'm assuming maybe Ansible or the plugin are looking in the wrong place for the 'request' module, but I'm not sure where to look so I can point it in the right direction. On Friday, February 26, 2021 at 4:46:59 PM UTC-6 dave...@g

Re: [ansible-project] centralised authentication of linux servers and integrates with google work space

2021-04-09 Thread &#x27;Michael Ströder' via Ansible Project
on with google workspace works. FreeIPA and Æ-DIR both expose LDAP end-points to use with data suitable to be used for NSS/PAM in Linux. But this stuff is getting highly off-topic here. Ciao, Michael. > On Fri, Apr 9, 2021 at 10:37 AM Michael Ströder > wrote: > >> On 4/9/21 10:20 AM

Re: [ansible-project] centralised authentication of linux servers and integrates with google work space

2021-04-09 Thread &#x27;Michael Ströder' via Ansible Project
me more components you need. Being the author I'm biased of course. On-topic again: Æ-DIR is installed with ansible [3]. :-) Ciao, Michael. [1] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html [2] https://docs.ansible.com/ansible/latest/collections/ansibl

Re: [ansible-project] ssh root access remain closed

2021-03-17 Thread Michael Barber
This is more of a Unix question than an ansible question. Your login ID should not be root. Your sudo file ,on destination host, should have your login ID defined with appropriate permissions. Use ssh keys for your login ID Hope this helps. On Wed, Mar 17, 2021 at 03:37 reredok wrote: > Hello,

[ansible-project] Errors in my Playbook

2021-02-25 Thread Michael Cooper
denied)"} Not sure what's going on because I am using a legal user but do I need to put a provision for *sudo *and run the commands with sudo? Thanks guys I appreciate your help, -- *Michael A Cooper* Linux Certified / Docker Certified http://www.coopfire.com -- You received this

[ansible-project] loop on register

2021-02-19 Thread Michael Rößler
les.results }}"* Is there a way to solve that? If yes, please provide the solution. Kind regards Michael Roessler -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails fr

Re: [ansible-project] Correct approach to manage a config file

2021-01-27 Thread &#x27;Michael Ströder' via Ansible Project
e because I hardcoded it in > my config template. I'd argue that if you're the admin of a service you're also responsible to fully understand all the config options in effect at any time. Ciao, Michael. -- You received this message because you are subscribed to the Google Gr

Re: [ansible-project] Correct approach to manage a config file

2021-01-27 Thread &#x27;Michael Ströder' via Ansible Project
to be applied. > Sorry for "philosophical question" I think this question is valid and you will probably see differing opinions. Ciao, Michael. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe fr

Re: [ansible-project] Change files permissions with loop

2020-12-31 Thread Michael Mullay
Hi Thuan, I'm not sure why you are just trying to assert the permissions rather than enforce them, but why not enforce them with something like: - name: Change permissions recursively hosts: all gather_facts: False ignore_errors: True vars: path: modes: d: '2755' f:

Re: [ansible-project] "when" attribute in a play

2020-12-18 Thread Michael Mullay
you can always create a main.yml in your role, then just conditionally import entire playbooks (like 'some_playbook.yml' in this case) such as: $ cat main.yml - import_tasks: some_playbook.yml when: inventory_hostname_short|regex_search('host1|otherhost2') Or any other conditional that works

Re: [ansible-project] Handle MFA Setup on Linux hosts using Ansible

2020-12-15 Thread &#x27;Michael Ströder' via Ansible Project
into: 1. restricting SSH access to go through a bastion host with MFA configured for establishing control master connections and/or 2. using temporary SSH user certs issued by an SSH-CA after user authenticated with MFA YMMV. Ciao, Michael. P.S.: My own projects in the field of user management f

[ansible-project] Re: Warning in ansible-base 2.10 (when running playbook)

2020-12-14 Thread Dan Michael O . Heggø
all automatically at the moment, due to the way the dependencies are declared. I just submitted an issue about that: https://github.com/ansible/ansible/issues/72967 As a workaround, you have to add it manually: poetry add packaging Dan Michael On Thursday, November 19, 2020 at 12:49:45 PM UTC

[ansible-project] Re: Warning in ansible-base 2.10 (when running playbook)

2020-11-19 Thread Michael Felt
Your specific message - about package management - is setup-tools and/or wheel installed. Guessing, but I have had very similar messages when `wheel` is missing. On Saturday, November 14, 2020 at 2:02:06 PM UTC+1 info.mauri...@gmail.com wrote: > I’m running into the same problem and can’t find

Re: [ansible-project] ansible unarchive module idempotency

2020-10-15 Thread Michael
dempotent. > So if your task reports as changed, then this means you are either > unpacking a different archive each time, or your unpacked tree has > changed somehow. > > Try adding a stat task right before the unarchive task and watch the > checksum to verify. > > >

[ansible-project] ansible unarchive module idempotency

2020-10-15 Thread Michael
I have a Jenkins pipeline that automates an install using Ansible. One of the steps includes copying a tar file to the target host using the unarchive module. This step finishes with a 'changed' status if rerun and so isn't idempotent as would be preferred. Is there a way to perform a check on

Re: [ansible-project] What's wrong with this block of code?

2020-09-23 Thread Michael Mullay
Looks like indenting. "state" should be indented to the level of "name" since they are both directives of dnf. On Wed, Sep 23, 2020 at 6:49 PM Prabhakaran Karuppaih < arrow.prabhaka...@gmail.com> wrote: > - name: Install other dependencies > dnf: > name: > - unixODBC > -

Re: [ansible-project] Ansible-2.10.0 has been released!

2020-09-23 Thread Michael Ströder
sion}.tar.gz.sha If this download location is not the official URL anymore I can change that of course. Ciao, Michael. -- 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

Re: [ansible-project] Re: New Ansible releases 2.9.12 and 2.8.14

2020-08-24 Thread Michael Ströder
g with a new release if there is a serious bug. Full ack! Because this regression is a real show-stopper I've added a backport patch in ansible package for openSUSE / SLE. https://build.opensuse.org/package/show/systemsmanagement/ansible Ciao, Michael. -- You received this messag

[ansible-project] Re: Cross-domain auth using Kerberos

2020-08-18 Thread Michael Richter
OK, threw away Kerberos and switched to NTLM which works great. Michael Richter schrieb am Montag, 10. August 2020 um 09:42:41 UTC+2: > Hi, > On a Linux server I want to access a Windows server from Windows domain > *sub.dnsdomain* using an account from parent Windows domain *dnsdomain

[ansible-project] Re: Installing ansible on Windows 10

2020-08-10 Thread Michael Richter
It might be installed to *$HOME/.local/bin*. If you can find ansible in this directory, add it to your PATH variable (*$HOME/.profile*: export PATH="$PATH:$HOME/.local/bin") and login again. charles...@gmail.com schrieb am Freitag, 7. August 2020 um 22:59:09 UTC+2: > Thank you I could install a

[ansible-project] Cross-domain auth using Kerberos

2020-08-10 Thread Michael Richter
Hi, On a Linux server I want to access a Windows server from Windows domain *sub.dnsdomain* using an account from parent Windows domain *dnsdomain*. The account has admin permissions to that server and can login using RDP. I have configured Kerberos realms for both domains on the Linux server. I

[ansible-project] Need a way to append to a line in a file using items

2020-07-16 Thread Michael Starling
Given a line in a file like this simple_allow_groups = access1,access2,access3 I want to be able to use a list of variables and append to that line. simple_allow_groups = access1,access2,access3,access4,access5,access6 I have tried the following code with lineinfile and replace --- - hosts: 's

Re: [ansible-project] check ping SSH connection for multiple host and uptime using playbook

2020-06-13 Thread Michael Mullay
If you use paramiko (ssh) as your transport, then by default any connection you make will be over ssh. And if you can ssh to it you can obviously ping it (unless ICMP is blocked). So I would just use a playbook that runs the 'uptime' command via the shell module. If you get a response, you have su

Re: [ansible-project] simplify always the same conditionals - evaluate contents of a string in conditionals (changed_when, failed_when, ...)

2020-06-11 Thread Michael K.
worked very well - thanks! Could you elaborate on your note "Also you are using templating in the wrong places. " a bit more? Greetings, Michael Am Mittwoch, 10. Juni 2020 22:40:19 UTC+2 schrieb Brian Coca: > > instead of set_fact (which forces static evaluation BEFORE the task,

[ansible-project] simplify always the same conditionals - evaluate contents of a string in conditionals (changed_when, failed_when, ...)

2020-06-09 Thread Michael K.
: vdom: "{{ vdom }}" state: "present" router_static: device: "{{ item.device }}" dst: "{{ item.dst }}" gateway: "{{ item.gateway }}" seq_num: "{{ item.name }}" status: "enable" w

Re: [ansible-project] User authentication with LDAP

2020-05-20 Thread Michael Ströder
in to reflect > the changes in LDAP? Are you talking about POSIX groups retrieved from LDAP server? How fast group membership is updated depends on the technical details how NSS-LDAP integration is done. But to me it seems there's no ansible-specific question here. Ciao, Michael. -- Yo

Re: [ansible-project] Ansible import excel format price list from supplier and export to remote inventory unit how to

2020-05-17 Thread Michael Chan
Hi racke If the web site requires login user/pw for access right, what module I should use? Thanks MC On Thu., May 14, 2020, 1:32 a.m. Stefan Hornburg (Racke), wrote: > On 5/14/20 8:28 AM, Michael Chan wrote: > > Hi I am not sure if this idea even possible, I want to use Ansible to >

Re: [ansible-project] There appears to be both 'k=v' shorthand syntax and YAML in this task.

2020-05-15 Thread Michael Mullay
Hi Gurudatta, As the error suggests, you have to use *either* 'k=v' syntax throughout the playbook or yaml throughout the playbook. More recent conventions suggest using yaml, so try this. - name: "Create multiple directories" file: path: {{item}} state: directory wit

[ansible-project] Ansible import excel format price list from supplier and export to remote inventory unit how to

2020-05-13 Thread Michael Chan
Hi I am not sure if this idea even possible, I want to use Ansible to pull price list from suppliers and remotely send and (copy) into designated inventory (remote servers) these update price lists are in excel and once the price list are updated, the cost and budget are also updated based on t

  1   2   3   4   5   6   7   8   9   10   >