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:
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
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
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 time
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:
- name:
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()
> f
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 oh
[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" gro
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 an
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 ansible-project+unsubscr...@google
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 group
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
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
requiremen
13 matches
Mail list logo