[ansible-project] I want to show the group variables, looping over all groups

2023-02-08 Thread Norbert Klamann
Hello all, i use Ansible to document and manage a small network of computers and other devices. So I bulit an inventory with several groups and hosts and defined a bunch of variables on each level to describe what i want to achieve, Each host and each group has for example a variable named `ho

Re: [ansible-project] I want to show the group variables, looping over all groups

2023-02-08 Thread Stefan Hornburg (Racke)
On 08/02/2023 09:21, Norbert Klamann wrote: Hello all, i use Ansible to document and manage a small network of computers and other devices. So I bulit an inventory with several groups and hosts and defined a bunch of variables  on each level to describe what i want to achieve,  Each host and e

Re: [ansible-project] I want to show the group variables, looping over all groups

2023-02-08 Thread Norbert Klamann
Yes of course , it should look like this ``` all - "alle interessierenden Hosts, auch nicht per ansible kontrollierbare" controllable - Alle Hosts, die mit ansible kontrolliert werden koennten fm174 - Alle Hosts in FM 174 (soweit Ansible-fähig) hetzner

Re: [ansible-project] I want to show the group variables, looping over all groups

2023-02-08 Thread Stefan Hornburg (Racke)
On 08/02/2023 09:58, Norbert Klamann wrote: Yes of course , it should look  like this ``` all                   - "alle interessierenden Hosts, auch nicht per ansible kontrollierbare" controllable          - Alle Hosts, die mit ansible kontrolliert werden koennten fm174                 - Alle Ho

[ansible-project] Error ansible modules pfSense

2023-02-08 Thread Ala Karmous
i have installed the modules and i run this playbook : (create a new alias) --- - name: Add new alias in pfSense hosts: pfsense gather_facts: no vars: pfsense_api_user: "username" pfsense_api_pass: "pass" ansible_python_interpreter: /usr/local/bin/python3.8 tasks: - name: In

Re: [ansible-project] Comparing command line variable in import_playbook

2023-02-08 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
We need to see the entire output. This excerpt does not provide enough context. From what I see it is skipping the PROD because your wc2end is 'stage'. That is expected. Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On Feb 7, 2023, at 7:55 PM, SysAdmin

Re: [ansible-project] Comparing command line variable in import_playbook

2023-02-08 Thread SysAdmin EM
This is the entire output: ansible-playbook [core 2.12.9] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/emanuel/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible ansible coll

Re: [ansible-project] Comparing command line variable in import_playbook

2023-02-08 Thread Todd Lewis
You still haven't shown us a task with the name "Creating DataBase", which is what's being skipped. Until you show us the tasks and their conditionals that go with the outputs, we can only guess. On Wednesday, February 8, 2023 at 7:57:22 AM UTC-5 ema...@gmail.com wrote: > This is the entire out

Re: [ansible-project] Comparing command line variable in import_playbook

2023-02-08 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
task path: /etc/ansible/webcheckin/alta_carrier/playbook/add_carrier_prod.yaml:6 skipping: [wc2-stage] => { "changed": false, "skip_reason": "Conditional result was False" } Look at the red text above. You have a prod task file. Your wc2env variable has a value of 'stage'. Your task in the

Re: [ansible-project] Comparing command line variable in import_playbook

2023-02-08 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Read this article for a more thorough explanation of import vs include and how conditions on them are handled. https://www.devopsschool.com/blog/ansible-include-and-import-with-differences-explanined/ Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On Fe

[ansible-project] Re: I want to show the group variables, looping over all groups

2023-02-08 Thread Todd Lewis
I see what you want, but it isn't possible. From each host's perspective, the `group_comment` variable will have the value as set in whichever one of that host's groups where the group name sorts last, as that's the last one loaded. So it is consistent, just not a solution to your problem. You

[ansible-project] [awx-project] Copy file from src and dest (remote server) fails

2023-02-08 Thread saravanan jothilingam
Hi, I have installed AWX 17.0.1 on Ubuntu OS. I am trying to run a simple playbook which would copy a zip file from the controller machine (source machine) to a remote SUSE linux host (/tmp/) location. When i launch the job from AWX UI, i get this error whereas when i run the ansible playbook via C

Re: [ansible-project] [awx-project] Copy file from src and dest (remote server) fails

2023-02-08 Thread Dick Visser
On Wed, 8 Feb 2023 at 18:47, saravanan jothilingam < saravan.dhana...@gmail.com> wrote: > Hi, > I have installed AWX 17.0.1 on Ubuntu OS. I am trying to run a simple > playbook which would copy a zip file from the controller machine (source > machine) to a remote SUSE linux host (/tmp/) location.