Questions tagged [ansible]
The ansible tag has no summary.
54 questions
0
votes
0
answers
30
views
Problem with updating Ansible on Ubuntu server [duplicate]
Ansible is installed on
Distributor ID: Ubuntu
Description: Ubuntu 25.10
Release: 25.10
Codename: questing
Linux server1 6.17.0-6-generic #6-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 7 13:34:17 UTC ...
-1
votes
1
answer
42
views
Trying to setup ubuntu security patching only
from the command line in ubuntu i can run:
apt list --upgradable | grep security | cut -d/ -f1 | xargs sudo apt-get install -y
but the ansible I have is :
hosts: all
become: true
become_user: root
...
1
vote
1
answer
307
views
Cannot use any Ansible playbook anymore. Error about "Data could not be sent to remote host"
When I try to execute any Ansible playbook, the following error message appears:
fatal: [pxenode2]: UNREACHABLE! => {"changed": false, "msg": "Data could not be sent to ...
0
votes
1
answer
1k
views
How to downgrade the Ansible version to a preffered one?
I would like to downgrade my current Ansible Version as this is not compatible with my Cisco Collection that i need to use for my network. I tried the command sudo pip install ansible==2.15.0 but i ...
0
votes
1
answer
95
views
Ansible, lxd error when installing XRoad: Attribute Error: NoneType has no attribute "items" lead to lxd_container.py
Ansible, lxd error when installing XRoad: Attribute Error: NoneType has no attribute "items" lead to lxd_container.py
I was trying to install XRoad using Ansible and LXD with these steps:
...
1
vote
0
answers
838
views
Ansible playbook and docker_compose task failing after updates
Would anyone be kind enough to help me?
I'm continuing to have issues with this after an update. I'm running an ansible playbook with each service defined as a role and individual tasks bringing up ...
0
votes
1
answer
1k
views
do-release-upgrade with a local apt repo
Edit
I tried with this command on Ansible:
- name: Run do-release-upgrade
ansible.builtin.command: /usr/bin/do-release-upgrade -f DistUpgradeViewNonInteractive
It simply just quits when I do that.
...
0
votes
1
answer
329
views
issue with ssh into lxd container using ansible
I have created a dynamic inventory which fetch the created lxd containers (so that I don have to type the name of container each time)
so here is the dynamic inventory
plugin: community.general.lxd
...
0
votes
1
answer
637
views
Ubuntu Server 22.04: How to write the Ansible debconf values into Postfix configuration?
I'm trying to automate the Postfix deployment into multiple Ubuntu servers:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
...
0
votes
1
answer
890
views
Unable to login to root after running ansible scripts
I am currently not able to login to my super user. Here is the sequence of events
~ su
password:
su: using restricted shell which zsh
su: failed to execute which zsh: No such file or directory
...
1
vote
0
answers
2k
views
Permission denied (publickey) error when managing GCP machine via Ansible (running on GCP VM) despite successful SSH connection
I deployed two machines to GCP via Terraform. Let's call them control-host and target-host. I want to manage the target-host via Ansible installed on the control-host.
Unfortunately, I keep getting ...
5
votes
2
answers
27k
views
git@git:~$ ansible --version ERROR: Ansible requires the locale encoding to be UTF-8; Detected ISO8859-1
Installing Ansible on Ubuntu
Ubuntu builds are available in a PPA here.
To configure the PPA on your system and install Ansible run these commands:
$ sudo apt update
$ sudo apt install software-...
1
vote
1
answer
1k
views
How would I autoinstall 22.04 from USB?
What the best way using Subquitity/Seed/Cloudinit to auto install an Ubuntu Desktop 22.04 image?
Our staff use Ubuntu and rather than keeping one fat image lying about which is time consuming to ...
0
votes
0
answers
2k
views
how to force user to change password after first login
I am trying to setup a rule that every newly created user must change his password after first login.
I know it can be done manually , i.e to force users to change password at next login.
chage -d 0 ...
0
votes
0
answers
66
views
Ansible - How to optimize sending a file to a sub-network?
I have a playbook that looks:
- name: Playbook para Copiar JRE
hosts: all
tasks:
- name: Copia Arquivo JRE
copy:
src: jre.tar.gz
dest: /home/pdv/sistema-loja/jre-new.tar....