Hi all,
I am trying to build an execution environment for my AWX. I am facing the
below error in my CentOS 7.
Can any one help me in this regard?
my versions
[image: image.png]
i have installed ansible-builder
[image: image.png]
when i tried to build EE
[image: image.png]
Regards,
Thank you the problem is before updating to Rhel 8 also when it reboots in
the last below task (line#99) the alternatives is updating to python3 link
which is not present . Do you suggest to use subscription module in line#79
instead of shell?
1. name: Get root volume size
2. set_fact:
That is a Rhel7 to RHEL 8 change. The default python in REHL7 is Python 2.7
while RHEL 8 is python3.6. I would also consider moving the subscription
tasks to community.general.redhat_subscription module. That is should
automatically change python version, but you may need to disconnect and
Why not use the "-K" when launching ansible-playbook? That will trigger
prompting fo the sudo password securely.
On Wed, Feb 21, 2024 at 3:53 AM Dick Visser wrote:
> Hii,
> I would like to have a playbook trigger the asking of the become password,
> but I couldn't find how to do it.
> Is there
Walter, I tried this, which is like what I think you posted:
* hosts: localhost connection: local gather_facts: false
vars_prompt:- name: "domainfile" prompt: "Enter domain short
name" private: no- name: "pemno" prompt: "Enter the number of
This works. The set_fact makes a global variable for the entire playbook.
- hosts: localhost
connection: local
gather_facts: false
become: false
vars_prompt:
- name: "pemno"
prompt: "Enter the number of the created pems"
private: no
tasks:
-
Dick, I'm not getting that to work. For now, I'm prompting again for the
pemno withing the second set of tasks. That works, but isn't ideal. I'd
like to see if I can "re-use" the pemno gathered from the first tasks
prompt in the second set of tasks:
*- hosts: localhost connection: local
thx, this worked!
On Wed, 21 Feb 2024 at 11:50, Stuart Lowe
wrote:
> Better to use ssh keys or store the details in ansible vault or something
> but if you need to prompt for the password you could potentially use
> vars_prompt: ?
>
> something like
>
> - hosts: all
>
> become: yes
>
>
Hello all,
Upgrading from Rhel7-> 8 using ansible. In the pre upgrade task I performed
few checks like space check and yum update and subscription-manager
registration. No issues in the beginning tasks..
But when performing below task post reboot taskShell:
Yum clean all
Better to use ssh keys or store the details in ansible vault or something but
if you need to prompt for the password you could potentially use vars_prompt: ?
something like
- hosts: all
become: yes
vars_prompt:
- name: ansible_become_pass
prompt: "Enter sudo password"
One of the team wants to do patching on servers using Ansible (AWX) and
that involves the use of RabbitMQ servers. They want to add RabbitMQ
certificates into Ansible.This is used to facilitate the RabbitMQ server
authentication.
We are using AWX in our environment.
I come to know that
Hii,
I would like to have a playbook trigger the asking of the become password,
but I couldn't find how to do it.
Is there perhaps some variable that can be set in a playbook (or play) to
do this? I was thinking of something like "ask_become_pass: true" or
something like that.
thx
Dick
--
You
12 matches
Mail list logo