of
> tasks that do that.
> And I also don't know what a "service catalog" is in an ansible context?
>
> Can you share the playbook that you have right now?
> Dick
>
> On Mon, 20 May 2024 at 19:39, Prady A wrote:
>
>> Hi experts,
>>
>> I m trying to add a f
Hi experts,
I m trying to add a feature to install db after installing vm. In my
service catalog if I select Postgres db it is passing extra variable as
Postgres to ansible platform. Using that variable how can a call a
template which install the actual db..
Regards
PD
--
You received this
10 Apr 2024 at 14:14, Prady A wrote:
> Thank you I see. I ll check the script. Can we call the execute
> the get_url without ssl certificate ?
>
> This is ansible verbose report. Seems the SSL is too old.
>
> Failed to connect to the host via ssh: OpenSSH_7.4p1, *OpenSSL
>>
read_packet: read header failed: Broken pipe
> debug2: Received exit status from master 1
> Shared connection to server1234 closed.
>
Regards
On Wed, Apr 10, 2024 at 5:08 PM Stefan Hornburg (Racke)
wrote:
> On 10/04/2024 09:55, Prady A wrote:
> > Thanks dick
> >
>
Thanks dick
Yes by default those commands doesn’t comes oob.
Tried with verbosity mode.
Request failed:”
Regards
On Wed, 10 Apr 2024 at 16:15, Dick Visser wrote:
> Too bad, that would have helped to indicate SSL issues on that remote host.
> Try running with more verbosity (-vvv) and see
Thanks but both curl and wget command not found..
Regards
On Wed, 10 Apr 2024 at 15:12, Dick Visser wrote:
> Are you able to use curl on that remote host with the same URL and
> credentials?
>
> Sent from Gmail Mobile
>
>
> On Wed, 10 Apr 2024 at 07:36, Prady A wrote:
&g
Hi experts
I ve been trying get_url in Aix server but no luck yet..
In Linux the below ansible code is working
get_url:
dest: /tmp
url: https://
username: <>
password: <>
But in AIX machine it is giving below error.
.. Request failed:
Any pointer or advice pls..
R
Thanks Dick that’s what I needed
On Fri, 8 Mar 2024 at 00:36, Dick Visser wrote:
>
>
> On Thu, 7 Mar 2024 at 16:02, Prady A wrote:
>
>> Hi again
>>
>> For simplicity I thought to do like this.
>>
>> Current code
>> - name: Subscribe my repo
>&
REPO
shell: |
subscription-manager register UK server
When:
IS_UK = True
Regards
PD
On Thu, 7 Mar 2024 at 22:44, Prady A wrote:
> Hi TODD,
>
> Thanks for your reply.
> Yes I ve that variable(IS_UK= TRUE)
> defined already and it is coming from upstre
Hi TODD,
Thanks for your reply.
Yes I ve that variable(IS_UK= TRUE)
defined already and it is coming from upstream.
Just need to the logic for efficient if then syntax in ansible.
Secondly subscription manager is shell command.
Regards
Prady
On Thu, 7 Mar 2024 at 21:42, Todd Lewis wrote
Hi Ansible experts
I am confused which one to use
I want to subscribe US servers default but if the server is in UK I want to
subscription should Point to UK capsule server..
If IS_UK= TRUE
Subscription-manager
then
Subscription-manager
Regards
--
You received this message because you are
Hi
Welcome..
There should be a handler to listen this notification..
The handler should have the same keyword.
Ex:
--- # webserver.yml - name: "Install and configure web server" hosts: "all"
handlers: - name: "Start and enable httpd Service" ansible.builtin.service:
name: "httpd.service" state:
Thank you.. I ll try to use the modules instead.
And we run ansible with the root user ..
also when I rebooting my server manually the default python link is getting
updated to pyhon3
Now I raised the issue to RH let’s see what comes up
Thanks again
On Fri, 23 Feb 2024 at 06:18, Evan Hisey
n tasks to community.general.redhat_subscription module. That
> is should automatically change python version, but you may need to
> disconnect and reconnect to update the user environment.
>
> On Wed, Feb 21, 2024 at 5:07 AM Prady A wrote:
>
>> Hello all,
>>
>>
>&g
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
ocess need to login registry.redhat.io successfully
>
> Regards
> Bülent
>
>
>
> 14 Şub 2024 Çar 03:14 tarihinde Prady A şunu
> yazdı:
>
>> Hi
>>
>> Thank you for your kind reply.
>> I can see the default EE on AAP GUIattached).
>&
;
> /usr/bin/podman system migrate
>
> Then I ran my job template.
>
> Hope this works for you.
>
> Paul
>
> On Tue, Feb 13, 2024 at 7:14 PM Prady A wrote:
>
>> Hi
>>
>> Thank you for your kind reply.
>> I can see the default EE on AAP GUIattac
HI All,
Facing acute challenge while running the first job in AAP 2.3. StandAlone
AAP was installed with success but when I tried to synch demo project or my
own project it keeps on saying this one line error.
No idea how to proceed from here. Kindly advise.
ERRO[] invalid internal status,
e use set_stats to artifacts so they can
> be used downstream in the AAP workflow by ex-snapshot-revert.yml including
> its powered on status.
>
>
>
> Even if you don't use these playbooks they may help you craft your own.
>
> Walter
> --
> Walter Rowe, Division Chief
>
:
> Is that a space before snapshot (right where it says “Task” in the JSON
> request)? Was that part of the request or did you insert that by mistake
> when you copied it into the email?
>
> - Rilindo
>
> On Jan 21, 2024, at 9:13 PM, Prady A wrote:
>
>
>
> Hi,
>
&
On Sun, 21 Jan 2024 at 07:15, Nico Kadel-Garcia wrote:
> On Thu, Jan 18, 2024 at 8:16 PM Prady A wrote:
> >
> > Hi experts,
> >
> > We are doing automation to update RHEL7-> RHEL8 .
> > Before we upgrade we take the snapshot.
> > The issue is when
Hi experts,
We are doing automation to update RHEL7-> RHEL8 .
Before we upgrade we take the snapshot.
The issue is whenever there is an upgrade failure we revert the server to
its previous state. But it seems when we revert it the machine is in power
off state..
it seems when we take automatic
Hi
Did you run your playbook or not ?
What’s the output so that it will be easy to diagnose
Thanks
On Tue, 19 Dec 2023 at 12:51, Thirumalai Raja A
wrote:
> Hi Team,
> below is my playbook and j2 template i was failed to create a file
> actually i am not comfortable wil jinja2 if any one
hief
> Infrastructure Services Division
> Mobile: 202.355.4123
>
> On Dec 13, 2023, at 9:19 AM, Prady A wrote:
>
> Hi Dick
>
> Thank you for the directions. If I not wrong all AAP uses containers to
> execute the templates and this is not specific to me. I m not sure
:52, Dick Visser wrote:
>
>
> On Wed, 13 Dec 2023 at 14:43, Prady A wrote:
>
>> Thank you for your direction and suggestion..
>> actually we want to sync http folder not a file
>> Is there any way I can sync between 2 servers.?
>>
>
> You can, with the
Thank you for your direction and suggestion..
actually we want to sync http folder not a file
Is there any way I can sync between 2 servers.?
Regards
Prady
On Wed, 13 Dec 2023 at 22:24, Dick Visser wrote:
> Hii
> If it really is just one file, you can use the copy module...
>
&
Hello experts
I ve simple piece of below code
- Name: Install rsync on the Target
package:
name: rsync
state: present
- Name: Synchronize file from local to remote
synchronize:
src: /tmp/memo.txt
dest: /temp/test
code I can run the code
.
~
Failed to retrieve user data.
~
RH support
https://access.redhat.com/solutions/6981363
Regards
Prady
On Sun, 26 Nov 2023 at 04:33, Evan Hisey wrote:
> How is your playbook handling the login? and who is it login is as?
>
> On Wed, Nov 22, 2023 at 2:26 AM Prady
Hi experts
I am trying to execute my template from AAP 2.3. But getting an access
denied error from my private automation hub. Any suggestions pls ?
error: initializing source docker://
vr4003.icici.com/icici-custom-ee-29-rhel8:latest: reading manifest latest
in
Hi
I am trying to execute my template in recently built AAP 2.3 , but
eventually it is failing with the below error message. No problem in Dev
environment. Occurring in prod env. Pls help. —
Traceback (most recent call last): File "/usr/bin/ansible-runner", line 10,
in sys.exit(main()) File
Thank you for your guidance ..
Regards
Prady
On Thu, Nov 16, 2023 at 22:36, 'Felix Fontein' via Ansible Project <
ansible-project@googlegroups.com> wrote:
> Hi,
>
> > Thank you for your kind reply
> >
> > No some target machine don’t have rsync installe
Thank you for your kind reply
No some target machine don’t have rsync installed.
What to do in that case ?
Regards
On Thu, Nov 16, 2023 at 22:10, Dick Visser wrote:
>
>
> On Thu, 16 Nov 2023 at 13:56, Prady A wrote:
>
>> Hi Experts
>>
>> One doubt with synchron
Regards
Prady
--
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...@googlegroups.com.
To view this discussion on the web vi
t;
> On Mon, 23 Oct 2023 at 14:46, Prady A wrote:
>
>> Thank you so much for your kind reply.
>>
>> For temporary fix I copied the /etc/multipath.conf from other machine
>> but eventually we need to update our ISO image to include this file.
>>
>> Regards
nable to create a default config
> 3. Override/replace the Condition in the systemd unit file (probably a bad
> idea).
>
>
>
> On Wed, 18 Oct 2023 at 07:25, Prady A wrote:
>
>> Thank you . Due to some old iso image the multipath is not able to enable
>> . We have to update t
ansible.builtin.service:
>name: multipathd
>state: started
>enabled: true
>
> ... work?
>
> On 10/18/2023 5:33 AM CEST Prady A wrote:
>
>
> Hi All..
>
> I ve a very 2 very basic task of enabling multipath.
> The 2 task is failing sinc
Hi All..
I ve a very 2 very basic task of enabling multipath.
The 2 task is failing since the first one is not enabling. But in ansible
job it is showing as changed but when I checked multipath service in system
it is showing as Below:
Active: inactive(dead)
Condition: start condition failed
Super cool . That’s what I was try in
pseudo code..
Thanks a ton
On Mon, Aug 14, 2023 at 20:07, Todd Lewis wrote:
> Here's *my* solution. Whether you wish to go there is a different
> question.
>
> ---
> - name: Prady A example 1
> hosts: localhost
> vars:
>
Hi folks
I want to optimize the code here
Existing code:
package:
name: “{{ item }}”
state: present
with_items:
- vim
- lvm2
- xyz
when: is_USA
Now I don’t want to install xyz PACKAGE for RHEL 9 server only then I ve to
rewrite the separate code for xyz package like below or
Thank you Abhijeet
Yes recently in my company also they upgrading to Ansible automation
platform. Since I just started learning Tower got confused.
Can I bypass Tower to learn this(Ansible Automation platform)one quick
question?
Regards
Prady
On Tue, Aug 8, 2023 at 14:03, Abhijeet Kasurde
Hi folks
Recently Redhat Automation platform has been introduced. Is it completely
different from Ansible Tower. The reason I am asking I got confused which
one to read :(
Regards
PD
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
t 5 digits of the
> mac address was a prefix for the host names. The mac pretty much
> guarentees a unique name with added bonus of assisting network finding on
> the network when there is a connectivity issue
>
> On Wed, Aug 2, 2023, 8:56 PM Prady A wrote:
>
>> Hi Experts,
&
Hi Experts,
Not exactly an ansible issue but any thought would be greatly appreciated.
We use AD for Password synchronization between different kinds of systems.
For password synchronization we also use mainframe system which accepts
only 8 charters as a hostname.
So now we are trimming the
n",
> "awx_project_scm_branch", "awx_user_email", "awx_user_first_name",
> "awx_user_id", "awx_user_last_name", and "awx_user_name".
>
> On Saturday, July 29, 2023 at 11:51:15 PM UTC-4 Prady A wrote:
>
>> Hi Todd,
>&g
the userid who run the
playbook from Ansible tower.
Regards
Prady
On Sun, Jul 30, 2023 at 1:23, Todd Lewis wrote:
> Without knowing your effective ansible config — i.e. the ansible.cfg it's
> using, the environment variables that can override those settings, and
> command line parameters
Thank you for your kind reply. Yes that’s what my guess also.
As there are many user who run the ansible so it unpractical to change it
for all the user. I wanted to get the user details in runtime ..
Regards
Prady
On Sat, Jul 29, 2023 at 12:50, Abhijeet Kasurde wrote:
> Hi Prady,
>
Hi All,
I searched a quite but could able to find what I wanted
Could any pls suggest me how to get the Username in the host machine. In
Linux if I run the below command I get what I suppose to get but don’t know
how to do it ansible. Any code Ansible or python would be helpful
Fin Linux:
> On Fri, Jul 28, 2023 at 10:21 AM Prady A wrote:
>
>> Thank you both of you and code .
>> I ll try to simplify it. since the module is already we are using in
>> different program, i reused it.
>>
>>
>> Regards
>> Prady
>>
>> On Sat, Jul 2
Thank you both of you and code .
I ll try to simplify it. since the module is already we are using in
different program, i reused it.
Regards
Prady
On Sat, Jul 29, 2023 at 0:18, Evan Hisey wrote:
> This seems massively complicated for a simple shell command to send an
> email.
l
> program to get the user name seems a bit much. I'd suggest doing this
> instead:
>
> import os
> import pwd
> userid = pwd.getpwuid(os.getuid())[0]
>
> Then there's the question of whether you want to roll your own email
> sending program rather than using the `commu
Hi Experts,
Need your suggestion pls.
The below one is ansible file which calls an python file in the control
node(localhost) and process an excel file which is also present in control
node based on hostnames. There is no issue in processing the excel and now
I am facing challenges while sending
Hi
Login to your control machine with the user you control.
1 . Generate the ssh key using ssh keygen.
# ssh keygen
2. Copy the pub key to the same user where you created the key.
Ex : #ssh-copy-id admistrator@
3. Try the adhoc command
Ex: #ansible -i inventory -m ping
Read the ansible doc
at 11:53 PM Prady A wrote:
> Thank you both for your kind help.
> my python script expects a list. I am expecting something like below list
> data= [["1ld501"], ["1ld994"]]
>
> This is working for me when I hardcoded inside python script. I am
> expe
Thank you both for your kind help.
my python script expects a list. I am expecting something like below list
data= [["1ld501"], ["1ld994"]]
This is working for me when I hardcoded inside python script. I am
expecting similar list from ansible script.
with the above join command all the hostname
Hi all
I am trying to pass the ansible hostnames as an array list to python script
but could not figure out where the extra characters are coming from. I am
passing with ansible_play_hosts_all variable.
In my host file there are 2 hoosts 1ld501 and 1ld994. but it is passing
some unexpected
Tue, Jun 20, 2023 at 8:25 PM Prady A wrote:
>
>> Thank Dick..Thank you for your kindness..
>> Sorry if I confused. My intention is to run the playbook and get all the
>> hostnames in a variable .
>>
>> Like :
>> var=hostvars[ansible_hostname][‘ansible_hostnam
so that finally I can pass that array to python
script.
Regards
On Wed, Jun 21, 2023 at 12:18, Dick Visser wrote:
> https://docs.ansible.com/ansible/latest/cli/ansible-inventory.html
>
>
> On Wed, 21 Jun 2023 at 04:49, Prady A wrote:
>
>> Hi all
>>
>> Pls help..
Hi all
Pls help.. need to collect all the hostnames in an array and pass that are
art finally to an python script as an argument..so that I can process that
python file with all hostname in a loop.
If any other way to doing it that would be certainly great..
Regards..
Prady
--
You received
I found one solution to with delegate_to option to run on the task on
particular server.
Regards
On Wed, Jun 21, 2023 at 10:23, Prady A wrote:
> Hi all
>
> I want to execute a python script which is available in control node. And
> the python script uses the ansible_hostn
the excel which is also available in local.
Regards
Prady
--
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
in ansible.cfg configuration file you can specify
Remote_user = administrator
On Thu, Jun 15, 2023 at 15:36, Thanh Nguyen Duc
wrote:
> Need to specify your target ssh user.
>
> On 15 Jun 2023, at 12:30, Prady A wrote:
>
>
> You are running the script from root use
You are running the script from root user. So it is trying to connect
root@ip not administrator@ip
On Thu, Jun 15, 2023 at 0:58, gonzalo diaz larenas <
gonzalodiazlare...@gmail.com> wrote:
> Dear
> Good afternoon, sorry for the inconvenience, I'm just getting started with
> what Ansible is,
This is regarding firewalld collection
I installed Rhel-system-roles now I copied firewalld.yml to my local
collection(./collections) folder and when I am executing ansible-doc
firewalld it cannot be found.
Though if I am executing being inside the folder no issue. I want to use
this firewalld
I suspect your ssh public key is not copied properly to those managed
nodes. need to check config file. Check in the managed node whether the ssh
public key is copied or not if you are using password less authentication.
On Mon, Jun 12, 2023 at 22:12, Thanh Nguyen Duc
wrote:
> Seem like it
Give some details about below:
from which user you are trying to connect to.
>From which user your ssh is configured.
And from which user you are ruining your ansible script..
On Mon, Jun 12, 2023 at 19:17, Kathy L wrote:
> As the title says, I am trying to run an ansible playbook against 10
>
Hello folks
As a new learner, I am trying to copy the ssh pub key to the managed node
as below.
ssh_install.yml
===
tasks:
- name: Exchange the pub key
authorized_key:
user: root
state: present
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
===
Running with
}}, owned by {{ ansible_local.lob |
> default(ansible_local.bu) }}
>
>
> On Monday, March 6, 2023 at 2:29:18 AM UTC-5 Prady A wrote:
>
>> Hello experts,
>>
>> Need one little suggestion on below ..
>> Below is my current code .
>>
>> - name: set /etc/
ble_local.bu) }}
>
>
> On Monday, March 6, 2023 at 2:29:18 AM UTC-5 Prady A wrote:
>
>> Hello experts,
>>
>> Need one little suggestion on below ..
>> Below is my current code .
>>
>> - name: set /etc/motd for abcd servers
>> template:
>>
Hello experts,
Need one little suggestion on below ..
Below is my current code .
- name: set /etc/motd for abcd servers
template:
src: etc-motd.j1
dest: /etc/motd
owner: root
group: root
mode: 0644
backup: yes
when:
- is_us
*Template: *etc-motd.j1
REMINDER:
{{ AMZN_KEY }}
{% endif %}
On Tue, Jul 12, 2022 at 1:12 PM Prady A wrote:
> Hello Folk,
>
> Need one help in updating the key to sshd_config file depending on the OS
> version.
>
> I ve folder structure like below
> - roles
> - sshd
> - tasks
>
Hello Folk,
Need one help in updating the key to sshd_config file depending on the OS
version.
I ve folder structure like below
- roles
- sshd
- tasks
main.yml
- vars
main.yml
- template
main.yml
I want to update
in tasks
On Sun, Jul 10, 2022 at 1:44, Dick Visser wrote:
> What did you try already?
> How does your playbook look like?
>
>
> On Sat, 9 Jul 2022 at 13:01, Prady A wrote:
>
>> Hi Experts,
>>
>> Just started learning ansible few weeks back. want to automate a s
Hi Experts,
Just started learning ansible few weeks back. want to automate a shell
script. Need your help badly. Any jinja template or any help would be
greatly appreciated.
Here is the pseudocode for the shell script
RHEL7_ENTRY1 -= "Algorithim-abc-xyz"
RHEL7_ENTRY2 -= "Cipher- cxyx-dfas"
While executing the command provide -k option and provide the root password
or
Authenticate your localhost.
On Thu, Jul 7, 2022 at 14:44, Ashok Reddy wrote:
> Hi all,
>
> I got the following error, while trying to execute ansible playbook:
>
> TASK [Gathering Facts]
>
74 matches
Mail list logo