Skip to main content

Questions tagged [ansible]

Ansible is an IT automation tool. Use this tag for questions regarding the Ansible IT automation tools.

0 votes
1 answer
25 views

How to solve Ansible venv runtime exception in specific versions?

I want to set up a venv with the following packages as these are specified in a project I'm working on: ionoscloud==6.1.4 pytest==6.2.5 pytest-cov==3.0.0 ansible==5.0.1 PyYAML==6.0 kubernetes==24.2.0 ...
4 votes
3 answers
27k views

How to fix: "listen tcp :443: bind: permission denied" on mattermost using ansible

I am deploying Mattermost in my AWS environment using ansible. I am trying to set a secure https connection, but I keep getting this error when I go into the logs: {:"commands/server.go:112"...
0 votes
0 answers
22 views

Upgraded Ansible with Python 3.8 but playbooks are now way slower that with python2.7, how to address slowdown?

When we were running RHEL7 our playbooks used to complete in about 1 hour with ansible-2.9.27-1.el7.noarch.rpm w/ python 2.7 + mitogen. Last year we upgraded to RHEL8 w/ python 3.8 and ansible-5.4 + ...
0 votes
0 answers
57 views

Error Ansible setup

Im setting up Ansible AWX on my ubuntu 22.04 machine. When running the install playbook ansible-playbook -i inventory install.yml I get the error below. Any ideas how to solve this error?enter code ...
1 vote
2 answers
4k views

"Unable to retrieve file contents" trying to supply ansible playbook from stdin

I wanted to supply a playbook to ansible-playbook 2.4.2.0 from stdin on RHEL 7.5, I found this post which seemed very promising but it's not working for me: $ cat ~/simple-ansible-playbook.yaml | ...
0 votes
1 answer
4k views

Ansible 2.6.2 remote user working but become is not. Config issue?

When attempting to run an ansible module on a destination server (via become) the ssh connection does not appear to be doing a "sudo" to become the application-owner user. The correct remote user is ...
1 vote
2 answers
14k views

Ansible expect not working for multiple prompt values

I need to install nginx agent for openam using ansible. while install the nginx_agent it asking multiple question while run the script, **********************************************************...
1 vote
1 answer
6k views

Ansible - Python - Docker: Module not found docker / docker-py — WHY No module found error is coming in Python prompt and in Ansible

Ansible 2.8.3 When I run my playbook, I see the following error. TASK [deployer_role : Creating network] ************************************************************************************************...
0 votes
0 answers
49 views

How to setup ssh-agent to persist keys after closing remote connection for use in cron jobs?

I have several cron jobs that require password protected ssh keys. The jobs run each morning and are consistently failing due to the agent not keeping the keys alive after disconnecting from the ...
0 votes
1 answer
6k views

Ansible stuck at gathering facts

as read in many other posts and questions gathering facts during exectution o an ansible-playbook may take some time and can get stuck for several reasons. In my case the behaviour is pretty weird: ...
2 votes
2 answers
1k views

Ansible - How to create dynamic inventory that fetches hosts from microsoft AD

I am using Ubuntu as a control-node, and would like to get the hosts from my domain controller (windows server 2022), the LDAP-Inventory Guide & microsoft.ad.ldap inventory – Inventory plugin for ...
0 votes
0 answers
13 views

Ansible use connection: local option along with jump ssh

How to make Ansible use jump server ssh when there is the "connection: local" instruction? Ex: - name: snmp hosts: all gather_facts: false connection: local serial: 1 tasks: - ...
1 vote
1 answer
4k views

Keycloak: How to overcome password expiration for a pseudo-user for config management purposes?

There are some Ansible playbooks that perform run-time configuration of a Keycloak instance via REST API. The playbooks obtain an authentication token with OIDC. It uses username + password - or X.509 ...
1 vote
1 answer
479 views

Using Ansible how to wait or recover when SSH service restarted?

Using Ansible how to wait or recover when SSH service restarted? I have an ansible playbook that does a few changes to SSH configuration, but of course Ansible loses the SSH connection when ssh is ...
0 votes
1 answer
231 views

In ansible playbook for role, just call specific task file, other than main.yml

I have simple role to install Weblogic server; And now I want to add a deinstall.yml task file. At the moment I created a new simple playbook, and want to execute the file tasks/deinstall.yml with it. ...

15 30 50 per page
1
2 3 4 5
18