Re: [ansible-project] New releases: ansible-core 2.12.3, ansible-core 2.11.9

2022-03-01 Thread Nico Kadel-Garcia
On Tue, Mar 1, 2022 at 9:19 AM Matt Martz wrote: > > Hi all- we're happy to announce the general release of: > > - ansible-core 2.12.3 > - ansible-core 2.11.9 I've updated my RPM building tools for RHEL 7, RHEL 8, and Fedora 35 for those over at: https://github.com/nkadel/ansiblerepo/ . If

Re: [ansible-project] upgrading ansible collection and ansible itself

2022-03-01 Thread Nico Kadel-Garcia
On Tue, Mar 1, 2022 at 11:26 AM Netanel Peretz wrote: > > Hey guys, > I'm running a pretty old version of ansible(2.9.4,python 2.7) and wanted to > upgrade it finally. > What is the latest stable version I can upgrade to? > From reading a bit online I understood these are the commands I should

Re: [ansible-project] Run playbook against multiple hosts

2022-03-01 Thread Nitrous
This is what I got when I ran: TASK [Include vars of server.yaml file] task path: /etc/ansible/roles/secwinupdates/tasks/main.yml:12

[ansible-project] upgrading ansible collection and ansible itself

2022-03-01 Thread Netanel Peretz
Hey guys, I'm running a pretty old version of ansible(2.9.4,python 2.7) and wanted to upgrade it finally. What is the latest stable version I can upgrade to? >From reading a bit online I understood these are the commands I should be using to upgrade? pip uninstall ansible pip install --upgrade

[ansible-project] Facts cached and not update in play

2022-03-01 Thread EE1
Hi Ansible list. New guy to Ansible here. I'm hitting an issue where facts are cached within a play despite calling an explicit task to -re-gather facts after a change. This appears to be contrary to the "getting started" documentation. I've posted the question on stackoverflow with all the

Re: [ansible-project] Run playbook against multiple hosts

2022-03-01 Thread Mike Eggleston
I must have missed something… why wouldn’t -i $FILE not work? > On Mar 1, 2022, at 10:14, Stefan Hornburg (Racke) wrote: > > On 01/03/2022 16:51, Nitrous wrote: >> I have defined my hosts in the variable file: >> [servers] >> server1 ansible_host=ip address of server 1 >> server2

Re: [ansible-project] Run playbook against multiple hosts

2022-03-01 Thread Stefan Hornburg (Racke)
On 01/03/2022 16:51, Nitrous wrote: I have defined my hosts in the variable file: [servers] server1 ansible_host=ip address of server 1 server2 ansible_host=ip address of server 2 etc I have a playbook that looks like this: - hosts: '{{ hostname }}'   gather_facts: no   tasks:   - name:

[ansible-project] Run playbook against multiple hosts

2022-03-01 Thread Nitrous
I have defined my hosts in the variable file: [servers] server1 ansible_host=ip address of server 1 server2 ansible_host=ip address of server 2 etc I have a playbook that looks like this: - hosts: '{{ hostname }}' gather_facts: no tasks: - name: Include vars for vcenter

Re: [ansible-project] Use cases of real time project of ansible

2022-03-01 Thread Rilindo Foster
Hi Prasanna, Red Hat has a nice walk through on provisioning an EC2 instance and associated AWS components, along with deploying an app within the instance. https://www.redhat.com/sysadmin/ansible-provisioning-aws-cloud This

Re: [ansible-project] Ist time using an API with Ansible

2022-03-01 Thread Jeremy Tourville
>>>BTW using ansible to run ansible through shell commands doesn't seem like the easiest strategy to me.. I acknowledge this may not be the best way. I was following what somebody else did and just trying to see if it could work. I am VERY new to trying to run Ansible as part of a larger

[ansible-project] New releases: ansible-core 2.12.3, ansible-core 2.11.9

2022-03-01 Thread Matt Martz
Hi all- we're happy to announce the general release of: - ansible-core 2.12.3 - ansible-core 2.11.9 How to get it - $ pip install ansible-core==2.12.3 --user or $ pip install ansible-core==2.11.9 --user The tar.gz of the release can be found here: * ansible-core 2.12.3

Re: [ansible-project] Use cases of real time project of ansible

2022-03-01 Thread prasanna kumar
Dear Dick, Sorry for that, kindly help me with the best practice of example of any use cases of Ansible real-time project web application. Thanks & regards, Prasanna Kumar .S On Tue, Mar 1, 2022 at 5:34 PM Dick Visser wrote: > That is a very vague question. > The questions on this list are

Re: [ansible-project] Use cases of real time project of ansible

2022-03-01 Thread Dick Visser
That is a very vague question. The questions on this list are usually the other way around: you explain a use case you have, what you have done to automate that using Ansible, and then ask a question about a problem . Can you reformulate your question in such a way? On Tue, 1 Mar 2022 at 12:15,

[ansible-project] Use cases of real time project of ansible

2022-03-01 Thread prasanna kumar
Dear Team, Kindly provide me with real-time ansible use cases for any AWS T3 architecture. Thanks & regards, Prasanna Kumar .S -- 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

[ansible-project] Does vmware_guest have an idempotency issue or do I hold it wrong?

2022-03-01 Thread Jörg Kastning
Hey folks, I'm using the vmware_guest module to clone virtual machines (VMs) from a template and customizing them. When running the same playbook with the same parameters/values again while the VMs already exist I would expect that there is nothing to do and task status would just be 'OK'.

[ansible-project] Using Ansible Playbook for Implementing Inventory Plugin?

2022-03-01 Thread Roland Müller
Hello, is it possible to use an Ansible playbook for implementing a custom inventory plugin? Currently, I am using following approach with manual steps: * create inventory file by running an ad-hoc command or playbook against a source-of-truth server * The actual playbook then uses the

Re: [ansible-project] Molecule converge fails : When hosts is all

2022-03-01 Thread Anushka hasini
This is my install.yml --- - name: Install dependencies apt: name: "{{ packages }}" vars: packages: - iptables - iptables-persistent rules.yml --- - block: - name: Alias port iptables: table: nat chain: PREROUTING in_interface: "{{ ansible_default_ipv4.interface }}"

Re: [ansible-project] Molecule converge fails : When hosts is all

2022-03-01 Thread Anushka hasini
Tasks contain install iptable, iptable-persistent dependencies on ubuntu18.04. On Tue, Mar 1, 2022 at 8:12 AM Dick Visser wrote: > We need more info that this. > What does the task file look like? > Etc > > On Mon, 28 Feb 2022 at 21:13, Anushka hasini > wrote: > >> Hi, >> >> I have tried to