Re: [ansible-project] Access reusable code & files from within custom lookup plugin ?

2023-01-12 Thread Josh
This might help: Plugin writing guide: https://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html example: https://gist.github.com/tgerla/bbfa956e5463361447c6 On Thursday, January 12, 2023 at 2:19:45 AM UTC-6 Jan Goyvaerts wrote: > Let me rephrase it: I've got playbooks that sho

[ansible-project] Ansible AWX - Add Execution

2023-01-12 Thread Mattia Maragno
Hello, i try to install awx execution to isolated network. VM is Distributor ID:Ubuntu Description:Ubuntu 22.04.1 LTS Release:22.04 Codename:jammy Python 3.10.6 ansible [core 2.13.7] but when execute "ansible-playbook -i inventory.yml install_receptor.yml -vvv", task end withe

Re: [ansible-project] IPv4 / IPv6 issue with apt_repository

2023-01-12 Thread Dick Visser
Yes, this is definitely not something specific to ansible. I would aim to have both instances being properly dualstack, but I'm an IPv6 evangelist :p Apart from what Antony said, it could also be that the instance has somehow gotten an IPv6 address assigned, which makes the OS think it's got dualst

Re: [ansible-project] IPv4 / IPv6 issue with apt_repository

2023-01-12 Thread Antony Stone
On Thursday 12 January 2023 at 16:15:59, Eli Taft wrote: > I have two Debian servers on EC2 instances in AWS. > One server is attempting to connect using IPv6 first, and only when all of > those time out does it try and succeed to download using an IPv4 address. > The other server doesn't do thi

[ansible-project] IPv4 / IPv6 issue with apt_repository

2023-01-12 Thread Eli Taft
Hi everyone, I have two Debian servers on EC2 instances in AWS. I'm using ansible to deploy to them. As far as I can tell they are configured the same (someone else set them up, but I've been trying to compare things in AWS console and also on the servers themselves). I am likely wrong about th

[ansible-project] ansible_facts showing interface eth0_1

2023-01-12 Thread Kathy L
I'm using ansible-core 1.18. When I gather facts on a device, it shows the interfaces of eth0, eth0_1, eth1 and lo. The results of "ip a" show only eth0, eth1 and lo interfaces . When I try to start arpwatch for each interface (other than lo), it fails on eth0_1, which makes sense to me. Why

[ansible-project] Re: ansible-lint : How to prevent 'no-same-owner' for ansible.posix.synchronize ?

2023-01-12 Thread Norbert Klamann
Found it : I had to add : owner: false group: false Norbert Klamann schrieb am Mittwoch, 11. Januar 2023 um 14:36:55 UTC+1: > Hello all, > > I have the following task > > ``` > --- > - name: Copy static webfiles to document root /var/www/{{ sitename }} > # become: true > become_user

Re: [ansible-project] Access reusable code & files from within custom lookup plugin ?

2023-01-12 Thread Jan Goyvaerts
Let me rephrase it: I've got playbooks that should access locally defined lookup plugins. Locally as in "not in a collection or role". Those lookup plugins should be able to import common code and read common resource files. The lookup plugin should be put into the directory "/lookup_plugins".