Re: [ansible-project] issue while runing script

2023-07-24 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Use the 'package' module instead of 'yum'. It will do the right thing on each OS. Also, pass all the packages in a single task. - hosts: all become: true vars: ansible_become_pass: pkgs: - vim - ntp tasks: - name: "install packages {{ pkgs }}" package:

Re: [ansible-project] builtin.expect question

2023-07-24 Thread Will McDonald
If you're just trying to find a way to ALWAYS say "yes, install" then looking at https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh#L37C31-L37C31 you could just pass in --unattended? On Mon, 24 Jul 2023 at 20:11, Rodrigo Reis wrote: > Hello Everyone! > > I trying to install ohmyzsh

Re: [ansible-project] issue while runing script

2023-07-24 Thread Abhijeet Kasurde
The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead. You need to install yum bindings for Python2 or dnf bindings for Python3 on the remote machine. On Mon, Jul 24, 2023 at 12:11 PM Saillesh Satam wrote: > I am getting below

Re: [ansible-project] builtin.expect question

2023-07-24 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Are you certain your install.sh script produces that literal string as the prompt? 'Do you want to change your default shell to zsh? \[Y/n\]:': "Y\n" You can use a regex in the key side of the dictionary. '.*change your default shell to zsh.*': "Y\n" Maybe your string isn't matching so it

[ansible-project] issue while runing script

2023-07-24 Thread Saillesh Satam
I am getting below error FAILED! => {"changed": false, "msg": "The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead."} Please help --- - hosts: all become: true vars: ansible_become_pass: tasks: -

Re: [ansible-project] Ansible - variable to select artifact

2023-07-24 Thread David Nadelson
Thank you all so much for the responses. On Tuesday, July 18, 2023 at 9:25:23 AM UTC-4 Rowe, Walter P. (Fed) wrote: > Silly me .. I should re-read my own code before pressing 'send'! > > - name: validate filename lookup value > assert: > that: > - my_var in file_table.keys() >

[ansible-project] builtin.expect question

2023-07-24 Thread Rodrigo Reis
Hello Everyone! I trying to install ohmyzsh using ansible inside of a bigger yml file with a bunch of other sutff. in hte ansible.builtin.expect block the goal is to anwser one installation question but it waits for the timeou and display a huge error message. Basically sucessfully install

[ansible-project] Re: Is there a way to get job running Start/Finish time from tower .

2023-07-24 Thread javed khan Siddque
[image: MicrosoftTeams-image (5).png] On Monday, July 24, 2023 at 7:51:07 PM UTC+5:30 javed khan Siddque wrote: > Hi All > > Is there a way to get job running Start/Finish time from tower . > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Re: Is there a way to get job running Start/Finish time from tower .

2023-07-24 Thread javed khan Siddque
On Monday, July 24, 2023 at 7:51:07 PM UTC+5:30 javed khan Siddque wrote: > Hi All > > Is there a way to get job running Start/Finish time from tower . > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] Is there a way to get job running Start/Finish time from tower .

2023-07-24 Thread javed khan Siddque
Hi All Is there a way to get job running Start/Finish time from tower . -- 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

Re: [ansible-project] Calling a secondary inventory file

2023-07-24 Thread Brian Coca
See `meta: refresh_inventory`https://docs.ansible.com/ansible/latest/collections/ansible/builtin/meta_module.html#parameter-free_form -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] Re: azure.azcollection azure_rm.yml inventory plugin failing to use az login credentials in execution environment

2023-07-24 Thread Will McDonald
Oh, and one more potentially useful data point, if I switch auth_source to explicitly 'cli' in the inventory plugin config I see the following: [root@3209917451f4 runner]# cat inventory/azure_rm.yml plugin: azure.azcollection.azure_rm auth_source: cli [root@3209917451f4 runner]# ansible-inventory

[ansible-project] azure.azcollection azure_rm.yml inventory plugin failing to use az login credentials in execution environment

2023-07-24 Thread Will McDonald
Hi all, I was looking for some help debugging an unusual issue I'm seeing with azure.azcollection and the azure-cli in an Ansible execution environment. TL;DR, if I manually build a container, pip install ansible-core, ansible-galaxy install the azure.azcollection, then pip install its